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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.h

Issue 2000483003: Rework timeline/frame scheduling logic for SVGImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CSSCrossfadeValue needs to reply truthfully to willRenderImage. Created 4 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/core/svg/graphics/SVGImageChromeClient.h
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.h b/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.h
index f4c123e1897a78c2f3d7f2408fc66dcb95a7e80f..a24874f0971bd5914066cd9c870d24d64ce6774a 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.h
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.h
@@ -44,6 +44,9 @@ public:
SVGImage* image() const { return m_image; }
+ void suspendAnimation();
+ void resumeAnimation();
+
private:
explicit SVGImageChromeClient(SVGImage*);
@@ -55,6 +58,11 @@ private:
SVGImage* m_image;
Timer<SVGImageChromeClient> m_animationTimer;
+ enum {
+ Running,
+ Suspended,
+ SuspendedWithFramePending,
+ } m_timelineState;
};
DEFINE_TYPE_CASTS(SVGImageChromeClient, ChromeClient, client, client->isSVGImageChromeClient(), client.isSVGImageChromeClient());

Powered by Google App Engine
This is Rietveld 408576698