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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h

Issue 2702243003: Disallow cross-thread Persistent<> read access. (Closed)
Patch Set: rebased upto r451733 Created 3 years, 10 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/platform/graphics/CompositorMutatorClient.h
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h b/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h
index f6277ad3d608114ecfb5cd39b846055f8cbbb35f..114967af10efd33819dc3a9b180a4c876bd38367 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.h
@@ -36,7 +36,8 @@ class PLATFORM_EXPORT CompositorMutatorClient
private:
cc::LayerTreeMutatorClient* m_client;
CompositorMutationsTarget* m_mutationsTarget;
- Persistent<CompositorMutator> m_mutator;
+ // Accessed by main and compositor threads.
+ CrossThreadPersistent<CompositorMutator> m_mutator;
std::unique_ptr<CompositorMutations> m_mutations;
};
« no previous file with comments | « third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h ('k') | third_party/WebKit/Source/platform/heap/Persistent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698