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

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

Issue 2869183002: Initial implementation of WorkletAnimation (Closed)
Patch Set: Rebase 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 efed3a47b4124b6a0680279b24e1ce6aeb06eabc..c895352145c0f596a3dfb66fdea263b7a8a967ca 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -34,6 +34,7 @@
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ScriptValue.h"
#include "core/CoreExport.h"
+#include "core/animation/WorkletAnimationController.h"
#include "core/dom/ContainerNode.h"
#include "core/dom/DocumentEncodingData.h"
#include "core/dom/DocumentInit.h"
@@ -1196,6 +1197,9 @@ class CORE_EXPORT Document : public ContainerNode,
CompositorPendingAnimations& GetCompositorPendingAnimations() {
return *compositor_pending_animations_;
}
+ WorkletAnimationController& GetWorkletAnimationController() {
+ return *worklet_animation_controller_;
+ }
void AddToTopLayer(Element*, const Element* before = nullptr);
void RemoveFromTopLayer(Element*);
@@ -1646,6 +1650,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