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

Unified Diff: cc/thread_proxy.h

Issue 11571068: Use WeakPtr for posting cc tasks to main thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 12 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 | « cc/test/layer_tree_test_common.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_proxy.h
diff --git a/cc/thread_proxy.h b/cc/thread_proxy.h
index 5320ee2accd79da56aca971ed7ce3838c101c8d8..3b2af67921f50fcddcaad5f8f15af4b8061278b5 100644
--- a/cc/thread_proxy.h
+++ b/cc/thread_proxy.h
@@ -152,14 +152,15 @@ private:
base::WeakPtrFactory<ThreadProxy> m_weakFactoryOnImplThread;
+ base::WeakPtr<ThreadProxy> m_mainThreadWeakPtr;
+ base::WeakPtrFactory<ThreadProxy> m_weakFactory;
+
scoped_ptr<LayerTreeHostImpl> m_layerTreeHostImpl;
scoped_ptr<InputHandler> m_inputHandlerOnImplThread;
scoped_ptr<Scheduler> m_schedulerOnImplThread;
- scoped_refptr<ScopedThreadProxy> m_mainThreadProxy;
-
// Holds on to the context we might use for compositing in between initializeContext()
// and initializeRenderer() calls.
scoped_ptr<OutputSurface> m_outputSurfaceBeforeInitializationOnImplThread;
« no previous file with comments | « cc/test/layer_tree_test_common.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698