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

Unified Diff: third_party/WebKit/Source/web/CompositorProxyClientImpl.cpp

Issue 2332963003: Unset CompositorWorkerGlobalScope during WorkerGlobalScope::dipose. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/CompositorProxyClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/CompositorProxyClientImpl.cpp b/third_party/WebKit/Source/web/CompositorProxyClientImpl.cpp
index 4a621c5f1ab5d7c8d7e5e260394e8bf827287093..e0544e25a612c8d10a201d79aec0aa74b84e88bf 100644
--- a/third_party/WebKit/Source/web/CompositorProxyClientImpl.cpp
+++ b/third_party/WebKit/Source/web/CompositorProxyClientImpl.cpp
@@ -53,10 +53,10 @@ DEFINE_TRACE(CompositorProxyClientImpl)
void CompositorProxyClientImpl::setGlobalScope(WorkerGlobalScope* scope)
{
TRACE_EVENT0("compositor-worker", "CompositorProxyClientImpl::setGlobalScope");
- DCHECK(!m_globalScope);
- DCHECK(scope);
+ DCHECK(!m_globalScope || !scope);
m_globalScope = static_cast<CompositorWorkerGlobalScope*>(scope);
- m_mutator->registerProxyClient(this);
+ if (m_globalScope)
+ m_mutator->registerProxyClient(this);
}
void CompositorProxyClientImpl::requestAnimationFrame()
« no previous file with comments | « third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698