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

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

Issue 2515363002: Introduce AnimationWorkletProxyClient and necessary plumbing to get it in worklet messaging proxy. (Closed)
Patch Set: address feedback Created 4 years, 1 month 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/CompositorWorkerProxyClient.h
diff --git a/third_party/WebKit/Source/core/dom/CompositorWorkerProxyClient.h b/third_party/WebKit/Source/core/dom/CompositorWorkerProxyClient.h
new file mode 100644
index 0000000000000000000000000000000000000000..747c695837ef3584f771b0af66ab94e2e9b80b54
--- /dev/null
+++ b/third_party/WebKit/Source/core/dom/CompositorWorkerProxyClient.h
@@ -0,0 +1,46 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CompositorWorkerProxyClient_h
+#define CompositorWorkerProxyClient_h
+
+#include "core/CoreExport.h"
+#include "core/dom/CompositorProxyClient.h"
+#include "core/workers/WorkerClients.h"
+#include "wtf/Noncopyable.h"
+
+#include <v8.h>
ikilpatrick 2016/11/28 16:43:42 not needed?
majidvp 2017/01/20 15:48:57 Done.
+
+namespace blink {
+
+class WorkerClients;
+class WorkerGlobalScope;
+
+class CORE_EXPORT CompositorWorkerProxyClient
+ : public CompositorProxyClient,
+ public Supplement<WorkerClients> {
+ WTF_MAKE_NONCOPYABLE(CompositorWorkerProxyClient);
+
+ public:
+ CompositorWorkerProxyClient() {}
+ DEFINE_INLINE_VIRTUAL_TRACE() {
+ CompositorProxyClient::trace(visitor);
+ Supplement<WorkerClients>::trace(visitor);
+ }
+
+ static CompositorWorkerProxyClient* from(WorkerClients*);
+ static const char* supplementName();
+
+ virtual void dispose() = 0;
+ virtual void setGlobalScope(WorkerGlobalScope*) = 0;
+ virtual void requestAnimationFrame() = 0;
+};
+
+CORE_EXPORT void provideCompositorWorkerProxyClientTo(
+ WorkerClients*,
+ CompositorWorkerProxyClient*);
+
+} // namespace blink
+
+#endif // CompositorWorkerProxyClient_h

Powered by Google App Engine
This is Rietveld 408576698