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

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

Issue 2894233002: [animation-worklet] invoke animate callback on mutation signal (Closed)
Patch Set: Created 3 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: third_party/WebKit/Source/core/dom/AnimationWorkletProxyClient.h
diff --git a/third_party/WebKit/Source/core/dom/AnimationWorkletProxyClient.h b/third_party/WebKit/Source/core/dom/AnimationWorkletProxyClient.h
index 64fc6af81340b377045c1c9ac4d06fa35b51a0cd..0436d4938542835fd40718dd398eaecf6a2b7b20 100644
--- a/third_party/WebKit/Source/core/dom/AnimationWorkletProxyClient.h
+++ b/third_party/WebKit/Source/core/dom/AnimationWorkletProxyClient.h
@@ -7,19 +7,33 @@
#include "core/CoreExport.h"
#include "core/dom/CompositorProxyClient.h"
+#include "core/workers/WorkerClients.h"
#include "platform/wtf/Noncopyable.h"
namespace blink {
-class CORE_EXPORT AnimationWorkletProxyClient : public GarbageCollectedMixin {
+class WorkletGlobalScope;
+
+class CORE_EXPORT AnimationWorkletProxyClient
+ : public Supplement<WorkerClients> {
WTF_MAKE_NONCOPYABLE(AnimationWorkletProxyClient);
public:
AnimationWorkletProxyClient() {}
- virtual ~AnimationWorkletProxyClient() {}
- DEFINE_INLINE_VIRTUAL_TRACE() {}
+
+ static AnimationWorkletProxyClient* From(WorkerClients*);
+ static const char* SupplementName();
+
+ virtual void SetGlobalScope(WorkletGlobalScope*) = 0;
+ virtual void Dispose() = 0;
+
+ virtual CompositorProxyClient* GetCompositorProxyClient() = 0;
};
+CORE_EXPORT void ProvideAnimationWorkletProxyClientTo(
+ WorkerClients*,
+ AnimationWorkletProxyClient*);
+
} // namespace blink
#endif // AnimationWorkletProxyClient_h

Powered by Google App Engine
This is Rietveld 408576698