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

Unified Diff: cc/thread_proxy.h

Issue 11232051: Remove static thread pointers from CC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Apply code review comments Created 8 years, 1 month 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/texture_layer_unittest.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 1c6c3e3340c0895665ba71d22deb7fa40196f32c..29832fc3ce23a193077f245b8382a1e6beda753b 100644
--- a/cc/thread_proxy.h
+++ b/cc/thread_proxy.h
@@ -5,6 +5,7 @@
#ifndef CC_THREAD_PROXY_H_
#define CC_THREAD_PROXY_H_
+#include "base/memory/scoped_ptr.h"
#include "base/time.h"
#include "cc/animation_events.h"
#include "cc/completion_event.h"
@@ -24,7 +25,7 @@ class Thread;
class ThreadProxy : public Proxy, LayerTreeHostImplClient, SchedulerClient, ResourceUpdateControllerClient {
public:
- static scoped_ptr<Proxy> create(LayerTreeHost*);
+ static scoped_ptr<Proxy> create(LayerTreeHost*, scoped_ptr<Thread> implThread);
virtual ~ThreadProxy();
@@ -77,7 +78,7 @@ public:
virtual void readyToFinalizeTextureUpdates() OVERRIDE;
private:
- explicit ThreadProxy(LayerTreeHost*);
+ ThreadProxy(LayerTreeHost*, scoped_ptr<Thread> implThread);
// Set on impl thread, read on main thread.
struct BeginFrameAndCommitState {
« no previous file with comments | « cc/texture_layer_unittest.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698