Index: third_party/WebKit/Source/web/CompositorWorkerProxyClientImpl.h |
diff --git a/third_party/WebKit/Source/web/CompositorWorkerProxyClientImpl.h b/third_party/WebKit/Source/web/CompositorWorkerProxyClientImpl.h |
index 5e682abe54a98919df62a71680a688a67d59b569..ce849036cb354edd05c87787122b3fa461b075f6 100644 |
--- a/third_party/WebKit/Source/web/CompositorWorkerProxyClientImpl.h |
+++ b/third_party/WebKit/Source/web/CompositorWorkerProxyClientImpl.h |
@@ -8,6 +8,7 @@ |
#include "core/dom/CompositorWorkerProxyClient.h" |
#include "platform/heap/Handle.h" |
#include "web/CompositorAnimator.h" |
+#include "web/CompositorProxyClientImpl.h" |
#include "wtf/Noncopyable.h" |
namespace blink { |
@@ -24,7 +25,8 @@ class WorkerGlobalScope; |
// |
// Should be accessed only on the compositor thread. |
class CompositorWorkerProxyClientImpl final |
- : public CompositorWorkerProxyClient, |
+ : public GarbageCollectedFinalized<CompositorWorkerProxyClientImpl>, |
+ public CompositorWorkerProxyClient, |
public CompositorAnimator { |
WTF_MAKE_NONCOPYABLE(CompositorWorkerProxyClientImpl); |
USING_GARBAGE_COLLECTED_MIXIN(CompositorWorkerProxyClientImpl); |
@@ -41,8 +43,9 @@ class CompositorWorkerProxyClientImpl final |
void dispose() override; |
void setGlobalScope(WorkerGlobalScope*) override; |
void requestAnimationFrame() override; |
- void registerCompositorProxy(CompositorProxy*) override; |
- void unregisterCompositorProxy(CompositorProxy*) override; |
+ CompositorProxyClient* compositorProxyClient() override { |
+ return m_compositorProxyClient.get(); |
+ }; |
private: |
bool executeAnimationFrameCallbacks(double monotonicTimeNow); |
@@ -52,8 +55,7 @@ class CompositorWorkerProxyClientImpl final |
CrossThreadPersistent<CompositorWorkerGlobalScope> m_globalScope; |
bool m_requestedAnimationFrameCallbacks; |
- // TODO(majidvp): move this out to a separate class that can be composed in. |
- HeapHashSet<WeakMember<CompositorProxy>> m_proxies; |
+ CrossThreadPersistent<CompositorProxyClientImpl> m_compositorProxyClient; |
}; |
} // namespace blink |