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

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

Issue 1304093006: Add a new API for testing animated images (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase harder Created 5 years, 3 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/BitmapImage.h ('k') | no next file » | 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 641ef762a4b1e65de8127e7d0908725bc5f0424e..a019a07e9b58ce6d86a1f521bf1effd280a812f0 100644
--- a/Source/platform/graphics/Image.h
+++ b/Source/platform/graphics/Image.h
@@ -121,6 +121,11 @@ public:
virtual ImageAnimationPolicy animationPolicy() { return ImageAnimationPolicyAllowed; }
virtual void advanceTime(double deltaTimeInSeconds) { }
+ // Advances an animated image. For BitmapImage (e.g., animated gifs) this
+ // will advance to the next frame. For SVGImage, this will trigger an
+ // animation update for CSS and advance the SMIL timeline by one frame.
+ virtual void advanceAnimationForTesting() { }
+
// 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/BitmapImage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698