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

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

Issue 2869183002: Initial implementation of WorkletAnimation (Closed)
Patch Set: Use CheckCanStartAnimationOnCompositor 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 731c53693e3aa0c43811af8d91ee4c750681cea8..4f15005d8b83bb6175e06b70b22bb09708757e27 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"
flackr 2017/07/19 19:23:48 We talked about moving this to modules hashed off
flackr 2017/07/21 18:14:25 Actually, on further thought, we will eventually w
#include "core/dom/ContainerNode.h"
#include "core/dom/DocumentEncodingData.h"
#include "core/dom/DocumentInit.h"
@@ -1197,6 +1198,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*);
@@ -1648,6 +1652,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