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

Unified Diff: third_party/WebKit/Source/core/dom/CompositorProxy.cpp

Issue 2774223002: CompositorWorkerProxyClientImpl to CompositorProxy cross thread reference is using WeakMember (Closed)
Patch Set: fix Created 3 years, 9 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/CompositorProxy.cpp
diff --git a/third_party/WebKit/Source/core/dom/CompositorProxy.cpp b/third_party/WebKit/Source/core/dom/CompositorProxy.cpp
index e715638b804f420fddba14fb52c421ec4cc444a1..b8aa2a2e3bc81d6d275d23a2e69c0bdf07f26dd4 100644
--- a/third_party/WebKit/Source/core/dom/CompositorProxy.cpp
+++ b/third_party/WebKit/Source/core/dom/CompositorProxy.cpp
@@ -126,7 +126,8 @@ CompositorProxy* CompositorProxy::create(ExecutionContext* context,
DCHECK(clients);
CompositorWorkerProxyClient* client =
CompositorWorkerProxyClient::from(clients);
- return new CompositorProxy(elementId, compositorMutableProperties, client);
+ return new CompositorProxy(elementId, compositorMutableProperties,
+ client->compositorProxyClient());
}
return new CompositorProxy(elementId, compositorMutableProperties);
@@ -178,6 +179,10 @@ CompositorProxy::~CompositorProxy() {
DCHECK(!m_connected);
}
+DEFINE_TRACE(CompositorProxy) {
+ visitor->trace(m_client);
+}
+
bool CompositorProxy::supports(const String& attributeName) const {
return m_compositorMutableProperties &
compositorMutablePropertyForName(attributeName);
« no previous file with comments | « third_party/WebKit/Source/core/dom/CompositorProxy.h ('k') | third_party/WebKit/Source/core/dom/CompositorProxyClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698