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

Unified Diff: Source/WebCore/platform/graphics/chromium/cc/CCLayerAnimationController.h

Issue 10310152: Merge 116786 - [chromium] Ensure that animations continue to run when transform-style is changed (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 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: Source/WebCore/platform/graphics/chromium/cc/CCLayerAnimationController.h
===================================================================
--- Source/WebCore/platform/graphics/chromium/cc/CCLayerAnimationController.h (revision 116996)
+++ Source/WebCore/platform/graphics/chromium/cc/CCLayerAnimationController.h (working copy)
@@ -90,6 +90,12 @@
// function updates the corresponding main thread animation's start time.
void notifyAnimationStarted(const CCAnimationEvent&);
+ // If a sync is forced, then the next time animation updates are pushed to the impl
+ // thread, all animations will be transferred.
+ void setForceSync() { m_forceSync = true; }
+
+ void setClient(CCLayerAnimationControllerClient*);
+
protected:
explicit CCLayerAnimationController(CCLayerAnimationControllerClient*);
@@ -99,6 +105,7 @@
void pushNewAnimationsToImplThread(CCLayerAnimationController*) const;
void removeAnimationsCompletedOnMainThread(CCLayerAnimationController*) const;
void pushPropertiesToImplThread(CCLayerAnimationController*) const;
+ void replaceImplThreadAnimations(CCLayerAnimationController*) const;
void startAnimationsWaitingForNextTick(double monotonicTime, CCAnimationEventsVector*);
void startAnimationsWaitingForStartTime(double monotonicTime, CCAnimationEventsVector*);
@@ -108,6 +115,9 @@
void tickAnimations(double monotonicTime);
+ // If this is true, we force a sync to the impl thread.
+ bool m_forceSync;
+
CCLayerAnimationControllerClient* m_client;
Vector<OwnPtr<CCActiveAnimation> > m_activeAnimations;
};

Powered by Google App Engine
This is Rietveld 408576698