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

Unified Diff: cc/trees/single_thread_proxy.cc

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/single_thread_proxy.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index c70e95d9ebc68cfae93df0c40ea9c263e063779c..7dd6752c5e4e5c39357947c7c3ca16a717017dc3 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -22,14 +22,18 @@ namespace cc {
scoped_ptr<Proxy> SingleThreadProxy::Create(
LayerTreeHost* layer_tree_host,
- LayerTreeHostSingleThreadClient* client) {
+ LayerTreeHostSingleThreadClient* client,
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner) {
return make_scoped_ptr(
- new SingleThreadProxy(layer_tree_host, client)).PassAs<Proxy>();
+ new SingleThreadProxy(layer_tree_host, client, main_task_runner))
+ .PassAs<Proxy>();
}
-SingleThreadProxy::SingleThreadProxy(LayerTreeHost* layer_tree_host,
- LayerTreeHostSingleThreadClient* client)
- : Proxy(NULL),
+SingleThreadProxy::SingleThreadProxy(
+ LayerTreeHost* layer_tree_host,
+ LayerTreeHostSingleThreadClient* client,
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner)
+ : Proxy(main_task_runner, NULL),
layer_tree_host_(layer_tree_host),
client_(client),
next_frame_is_newly_committed_frame_(false),
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698