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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 363383002: Forward input tasks to the Blink scheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup. DefaultMainThreadTaskRunner now dispatches properly. 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
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index 9469d5984d342fb62666c3b5dfe8b002541ca1e5..3cd2a9c21a60c829f6c644db5b636186503695c1 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -22,14 +22,17 @@ namespace cc {
scoped_ptr<Proxy> SingleThreadProxy::Create(
LayerTreeHost* layer_tree_host,
- LayerTreeHostSingleThreadClient* client) {
+ LayerTreeHostSingleThreadClient* client,
+ scoped_refptr<cc::MainThreadTaskRunner> 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),
+ LayerTreeHostSingleThreadClient* client,
+ scoped_refptr<cc::MainThreadTaskRunner> main_task_runner)
+ : Proxy(main_task_runner, NULL),
layer_tree_host_(layer_tree_host),
client_(client),
next_frame_is_newly_committed_frame_(false),

Powered by Google App Engine
This is Rietveld 408576698