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

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

Issue 2565323003: Move gif image decoder to SkCodec (Closed)
Patch Set: Setting has alpha on a partial decode. Created 3 years, 8 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 8ad824902e14b471d8abb796132adcb51c6371c8..8e9de1fefe9c0e8d4390f71b779098b5c1fd06a2 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
@@ -386,6 +386,8 @@ class PLATFORM_EXPORT ImageDecoder {
// initFrameBuffer() before setting the status to FramePartial. For WebP,
// however, the status needs to be FrameComplete since the complete buffer is
// used to do alpha blending in WEBPImageDecoder::applyPostProcessing().
+ // And gif is also treated differently, since it relies on SkCodec which
scroggo_chromium 2017/04/17 20:04:55 IIUC, previously, GIF and APNG required at least k
cblume 2017/04/20 03:42:26 Your understanding is correct. The way I understan
scroggo_chromium 2017/04/21 20:09:31 It will help if you take a look at the two callsit
cblume 2017/04/21 23:47:38 Okay, I think I follow now. So I understood that
scroggo_chromium 2017/04/24 15:06:53 I'm not sure that's the case. If this frame is par
+ // requires the complete required previous frame.
//
// Before calling this, verify that frame |index| exists by checking that
// |index| is smaller than |m_frameBufferCache|.size().

Powered by Google App Engine
This is Rietveld 408576698