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

Unified Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2869183002: Initial implementation of WorkletAnimation (Closed)
Patch Set: DCHECK for threaded animation support Created 3 years, 6 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/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 92c145998e359219f57d29780fc5d3af6d0a28d0..034be3acac0bb83814c3edce4cc645cc6ea9f923 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -171,6 +171,8 @@ class TreeWalker;
class V8NodeFilterCondition;
class VisitedLinkState;
class WebMouseEvent;
+class WorkletAnimationBase;
+class WorkletAnimationController;
struct AnnotatedRegionValue;
struct FocusParams;
struct IconURL;
@@ -1134,6 +1136,12 @@ class CORE_EXPORT Document : public ContainerNode,
void CancelAnimationFrame(int id);
void ServiceScriptedAnimations(double monotonic_animation_start_time);
+ WorkletAnimationController& GetWorkletAnimationController() {
+ return *worklet_animation_controller_;
+ }
+ void RegisterWorkletAnimation(WorkletAnimationBase*);
majidvp 2017/06/06 16:04:27 nit: should take a const ref.
smcgruer 2017/06/07 18:23:25 Made it take a ref (in WorkletAnimationController)
+ void DeregisterWorkletAnimation(WorkletAnimationBase*);
+
int RequestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&);
void CancelIdleCallback(int id);
@@ -1654,6 +1662,7 @@ class CORE_EXPORT Document : public ContainerNode,
Member<DocumentTimeline> timeline_;
Member<CompositorPendingAnimations> compositor_pending_animations_;
+ Member<WorkletAnimationController> worklet_animation_controller_;
Member<Document> template_document_;
Member<Document> template_document_host_;

Powered by Google App Engine
This is Rietveld 408576698