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

Unified Diff: third_party/WebKit/Source/platform/graphics/Image.h

Issue 2883593002: Add frame count to paint image. (Closed)
Patch Set: rebase Created 3 years, 6 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/graphics/Image.h
diff --git a/third_party/WebKit/Source/platform/graphics/Image.h b/third_party/WebKit/Source/platform/graphics/Image.h
index b3e30393625359732fc2ccdc13bc52726a25714f..b4315a43f573ca78beedace401f7e723268c8f67 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.h
+++ b/third_party/WebKit/Source/platform/graphics/Image.h
@@ -84,6 +84,7 @@ class PLATFORM_EXPORT Image : public ThreadSafeRefCounted<Image> {
virtual bool CurrentFrameIsComplete() { return false; }
virtual bool CurrentFrameIsLazyDecoded() { return false; }
+ virtual size_t FrameCount() { return 0; }
virtual bool IsTextureBacked() const { return false; }
// Derived classes should override this if they can assure that the current
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/BitmapImage.h ('k') | third_party/WebKit/Source/platform/graphics/Image.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698