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

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

Issue 892783003: Check the condition for animation policy of bitmapImage on notifyFinished. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move updating policy to ImageLoader Created 5 years, 11 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
« no previous file with comments | « Source/platform/graphics/BitmapImageTest.cpp ('k') | Source/platform/graphics/ImageObserver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/Image.h
diff --git a/Source/platform/graphics/Image.h b/Source/platform/graphics/Image.h
index 0a67e4ba59206bfcc619a07e73222dcd5bf52c93..afe4e96b5339e58a245bc3710485baa27a18792b 100644
--- a/Source/platform/graphics/Image.h
+++ b/Source/platform/graphics/Image.h
@@ -31,6 +31,7 @@
#include "platform/geometry/IntRect.h"
#include "platform/graphics/Color.h"
#include "platform/graphics/GraphicsTypes.h"
+#include "platform/graphics/ImageAnimationPolicy.h"
#include "platform/graphics/ImageOrientation.h"
#include "platform/graphics/skia/NativeImageSkia.h"
#include "third_party/skia/include/core/SkXfermode.h"
@@ -115,6 +116,10 @@ public:
// True if this image can potentially animate.
virtual bool maybeAnimated() { return false; }
+ // Set animationPolicy
+ virtual void setAnimationPolicy(ImageAnimationPolicy) { }
+ virtual ImageAnimationPolicy animationPolicy() { return ImageAnimationPolicyAllowed; }
+
// Typically the ImageResource that owns us.
ImageObserver* imageObserver() const { return m_imageObserver; }
void setImageObserver(ImageObserver* observer) { m_imageObserver = observer; }
« no previous file with comments | « Source/platform/graphics/BitmapImageTest.cpp ('k') | Source/platform/graphics/ImageObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698