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

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: use WeakPtr for tasks posted to main thread in ThreadedTests Created 8 years 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: cc/thread_proxy.h
diff --git a/cc/thread_proxy.h b/cc/thread_proxy.h
index f661a363a15c0a644e220df7e230d433515e16c4..bce19dc8d2630dd632d879a015b1c53dd39cf321 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;

Powered by Google App Engine
This is Rietveld 408576698