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

Unified Diff: cc/trees/single_thread_proxy.h

Issue 400773002: cc: Parameterize the main thread task runner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WebView fix. Created 6 years, 5 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/trees/proxy.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/single_thread_proxy.h
diff --git a/cc/trees/single_thread_proxy.h b/cc/trees/single_thread_proxy.h
index 73fa653222556c30678ac40403e4a8aadeaa5f51..bb3b5e7414527bee592208b30a29875da6396d3b 100644
--- a/cc/trees/single_thread_proxy.h
+++ b/cc/trees/single_thread_proxy.h
@@ -24,7 +24,8 @@ class CC_EXPORT SingleThreadProxy : public Proxy,
public:
static scoped_ptr<Proxy> Create(
LayerTreeHost* layer_tree_host,
- LayerTreeHostSingleThreadClient* client);
+ LayerTreeHostSingleThreadClient* client,
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner);
virtual ~SingleThreadProxy();
// Proxy implementation
@@ -92,8 +93,10 @@ class CC_EXPORT SingleThreadProxy : public Proxy,
void CompositeImmediately(base::TimeTicks frame_begin_time);
private:
- SingleThreadProxy(LayerTreeHost* layer_tree_host,
- LayerTreeHostSingleThreadClient* client);
+ SingleThreadProxy(
+ LayerTreeHost* layer_tree_host,
+ LayerTreeHostSingleThreadClient* client,
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner);
void DoCommit(scoped_ptr<ResourceUpdateQueue> queue);
bool DoComposite(LayerTreeHostImpl::FrameData* frame);
« no previous file with comments | « cc/trees/proxy.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698