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

Unified Diff: third_party/WebKit/Source/web/CompositorMutatorImpl.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/web/CompositorMutatorImpl.cpp
diff --git a/third_party/WebKit/Source/web/CompositorMutatorImpl.cpp b/third_party/WebKit/Source/web/CompositorMutatorImpl.cpp
index a7d835295758a21c7d0ee4caae64ddebbcba075f..f1287dcb3257e1877e91784d5307123bade4018a 100644
--- a/third_party/WebKit/Source/web/CompositorMutatorImpl.cpp
+++ b/third_party/WebKit/Source/web/CompositorMutatorImpl.cpp
@@ -76,6 +76,7 @@ bool CompositorMutatorImpl::mutate(
void CompositorMutatorImpl::registerCompositorAnimator(
CompositorAnimator* animator) {
+ DCHECK(!isMainThread());
TRACE_EVENT0("compositor-worker",
"CompositorMutatorImpl::registerCompositorAnimator");
DCHECK(!m_animators.contains(animator));
@@ -90,6 +91,7 @@ void CompositorMutatorImpl::unregisterCompositorAnimator(
}
void CompositorMutatorImpl::setNeedsMutate() {
+ DCHECK(!isMainThread());
TRACE_EVENT0("compositor-worker", "CompositorMutatorImpl::setNeedsMutate");
m_client->setNeedsMutate();
}
« no previous file with comments | « third_party/WebKit/Source/web/CompositorMutatorImpl.h ('k') | third_party/WebKit/Source/web/CompositorProxyClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698