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

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

Issue 2879123003: blink: Fix frame completion querying for static images. (Closed)
Patch Set: 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 a41bf4e6d6b75d7d5ee0f9d2eae1ea468fcc6ec6..17521b18552d7a710976181731418de57fe9e7cc 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
@@ -195,6 +195,9 @@ class PLATFORM_EXPORT ImageDecoder {
// Whether or not the frame is fully received.
virtual bool FrameIsCompleteAtIndex(size_t) const;
scroggo_chromium 2017/05/30 15:51:34 nit: As a follow-on, I think we should rename this
scroggo_chromium 2017/07/17 19:25:35 Uploaded crrev.com/2982083002
+ // Returns true if a cached complete decode is available.
+ bool FrameIsDecodedAtIndex(size_t) const;
+
// Duration for displaying a frame in milliseconds. This method is only used
// by animated images.
virtual float FrameDurationAtIndex(size_t) const { return 0; }

Powered by Google App Engine
This is Rietveld 408576698