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

Unified Diff: Source/core/svg/animation/SMILTimeContainer.h

Issue 188903003: Revert "Drive SVG Animations via requestAnimationFrame" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/core/svg/SVGDocumentExtensions.cpp ('k') | Source/core/svg/animation/SMILTimeContainer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/animation/SMILTimeContainer.h
diff --git a/Source/core/svg/animation/SMILTimeContainer.h b/Source/core/svg/animation/SMILTimeContainer.h
index 98e9e11a4c6660a303feb8e218498549769a7c25..bff4ae935b6faaa287b39e1d2914ee0559c475e8 100644
--- a/Source/core/svg/animation/SMILTimeContainer.h
+++ b/Source/core/svg/animation/SMILTimeContainer.h
@@ -38,8 +38,6 @@
namespace WebCore {
-class AnimationClock;
-class Document;
class SVGElement;
class SVGSMILElement;
class SVGSVGElement;
@@ -63,9 +61,6 @@ public:
void resume();
void setElapsed(SMILTime);
- void serviceAnimations(double monotonicAnimationStartTime);
- bool hasAnimations() const;
-
void setDocumentOrderIndexesDirty() { m_documentOrderIndexesDirty = true; }
private:
@@ -75,15 +70,12 @@ private:
void scheduleAnimationFrame(SMILTime fireTime);
void scheduleAnimationFrame();
void cancelAnimationFrame();
- void wakeupTimerFired(Timer<SMILTimeContainer>*);
+ void timerFired(Timer<SMILTimeContainer>*);
void updateAnimations(SMILTime elapsed, bool seekToTime = false);
- void serviceOnNextFrame();
void updateDocumentOrderIndexes();
double lastResumeTime() const { return m_resumeTime ? m_resumeTime : m_beginTime; }
- Document& document() const;
-
double m_beginTime;
double m_pauseTime;
double m_resumeTime;
@@ -91,10 +83,8 @@ private:
double m_presetStartTime;
bool m_documentOrderIndexesDirty;
- bool m_framePending;
- OwnPtr<AnimationClock> m_animationClock;
- Timer<SMILTimeContainer> m_wakeupTimer;
+ Timer<SMILTimeContainer> m_timer;
typedef pair<SVGElement*, QualifiedName> ElementAttributePair;
typedef Vector<SVGSMILElement*> AnimationsVector;
« no previous file with comments | « Source/core/svg/SVGDocumentExtensions.cpp ('k') | Source/core/svg/animation/SMILTimeContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698