Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/CompositorProxyClient.h |
| diff --git a/third_party/WebKit/Source/core/dom/CompositorProxyClient.h b/third_party/WebKit/Source/core/dom/CompositorProxyClient.h |
| index 95c056a362ddd3d069cb20fcbea6f8aac30c1e85..58095f7cb28baaed0dab4f22fb02cc28c128daf2 100644 |
| --- a/third_party/WebKit/Source/core/dom/CompositorProxyClient.h |
| +++ b/third_party/WebKit/Source/core/dom/CompositorProxyClient.h |
| @@ -6,29 +6,18 @@ |
| #define CompositorProxyClient_h |
| #include "core/CoreExport.h" |
| -#include "core/workers/WorkerClients.h" |
| -#include "wtf/Noncopyable.h" |
| - |
| -#include <v8.h> |
| +#include "platform/heap/Handle.h" |
| namespace blink { |
| class CompositorProxy; |
| -class WorkerClients; |
| -class WorkerGlobalScope; |
| - |
| -class CORE_EXPORT CompositorProxyClient : public Supplement<WorkerClients> { |
| - WTF_MAKE_NONCOPYABLE(CompositorProxyClient); |
| +class CORE_EXPORT CompositorProxyClient : public GarbageCollectedMixin { |
|
dcheng
2016/11/28 21:17:31
Nit: it might be slightly simpler just to make thi
majidvp
2017/01/20 15:48:57
Good idea. Done!
|
| public: |
| - CompositorProxyClient() {} |
| + enum Type { kWorkerClient, kWorkletClient }; |
|
dcheng
2016/11/28 21:17:31
Nit: can we document the distinction between 'work
majidvp
2017/01/20 15:48:57
I don't know if there is a design doc for worklets
|
| - static CompositorProxyClient* from(WorkerClients*); |
| - static const char* supplementName(); |
| + DEFINE_INLINE_VIRTUAL_TRACE() {} |
| - virtual void dispose() = 0; |
| - virtual void setGlobalScope(WorkerGlobalScope*) = 0; |
| - virtual void requestAnimationFrame() = 0; |
| virtual void registerCompositorProxy(CompositorProxy*) = 0; |
| // It is not guaranteed to receive an unregister call for every registered |
| // proxy. In fact we only receive one when a proxy is explicitly |
| @@ -37,9 +26,6 @@ class CORE_EXPORT CompositorProxyClient : public Supplement<WorkerClients> { |
| virtual void unregisterCompositorProxy(CompositorProxy*) = 0; |
| }; |
| -CORE_EXPORT void provideCompositorProxyClientTo(WorkerClients*, |
| - CompositorProxyClient*); |
| - |
| } // namespace blink |
| #endif // CompositorProxyClient_h |