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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h

Issue 2756463003: Remove opaque alpha channel special case (Closed)
Patch Set: Checking if JPEGImageDecoder::OutputScanlines()'s SetHasAlpha(true) is under test Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
index 2b00aa0e76c36796887ca12abff14001fd828d5a..fe67d742ec933180b412ad4fcdda06205a94a27f 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
@@ -350,18 +350,6 @@ class PLATFORM_EXPORT ImageDecoder {
// false otherwise.
bool PostDecodeProcessing(size_t);
- // The GIF and PNG decoders set the default alpha setting of the ImageFrame to
- // true. When the frame rect does not contain any (semi-) transparent pixels,
- // this may need to be changed to false. This depends on whether the required
- // previous frame adds transparency to the image, outside of the frame rect.
- // This methods corrects the alpha setting of the frame buffer to false when
- // the whole frame is opaque.
- //
- // This method should be called by the GIF and PNG decoder when the pixels in
- // the frame rect do *not* contain any transparent pixels. Before calling
- // this method, the caller must verify that the frame exists.
- void CorrectAlphaWhenFrameBufferSawNoAlpha(size_t);
-
RefPtr<SegmentReader> data_; // The encoded data.
Vector<ImageFrame, 1> frame_buffer_cache_;
const bool premultiply_alpha_;

Powered by Google App Engine
This is Rietveld 408576698