Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Issue 1972683002: Early reporting of opaqueness by decoders. (Closed)

Created:
4 years, 7 months ago by aleksandar.stojiljkovic
Modified:
4 years, 6 months ago
CC:
chromium-reviews, blink-reviews, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Early reporting of opaqueness by decoders. Attempt to report opaqueness before decoding by using information parsed from header for GIF, JPEG and PNG. Caveat: frames reported as transparent could after decoding be opaque. Opposite is not possible except when there was error in decoding. BUG=593430

Patch Set 1 #

Total comments: 2

Messages

Total messages: 6 (2 generated)
aleksandar.stojiljkovic
I'm aware that @schenney has already started work on this. Not sure this code even ...
4 years, 7 months ago (2016-05-11 16:04:53 UTC) #2
scroggo_chromium
https://codereview.chromium.org/1972683002/diff/1/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp File third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp (right): https://codereview.chromium.org/1972683002/diff/1/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp#newcode98 third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoder.cpp:98: if (frameContext.transparentPixel() >= colorTable.size()) Isn't it also possible that ...
4 years, 7 months ago (2016-05-16 20:38:20 UTC) #4
Stephen Chennney
I think the bug has relevant discussion. We decided not to go with this approach ...
4 years, 7 months ago (2016-05-18 20:23:34 UTC) #5
aleksandar.stojiljkovic
4 years, 6 months ago (2016-06-07 19:15:56 UTC) #6
On 2016/05/18 20:23:34, Stephen Chennney wrote:
> I think the bug has relevant discussion. We decided not to go with this
approach
> because code that used opacity information from the header may not display
> hidden content while the image decodes, which is a less good user experience
> than considering the image to be transparent during loading.

Thanks. Closing.

> 
> The preferred approach is to correctly report the decoding of the image back
> from the raster thread to the Blink thread, somehow. It may be as simple as
> correctly hooking up ImageObservers. I was planning on dealing with this after
I
> fix the issues with the compositor image caching, but feel free to take over
> sooner.

Powered by Google App Engine
This is Rietveld 408576698