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

Unified Diff: ui/compositor/compositor.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 | « mojo/examples/compositor_app/compositor_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 3a2605b4c6800ffe6281ca95d956b8c96832ecb9..f6ed688d9b405aba456f7d12bea4dcc604afefbd 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -142,10 +142,15 @@ Compositor::Compositor(gfx::AcceleratedWidget widget,
this,
context_factory_->GetSharedBitmapManager(),
settings,
+ base::MessageLoopProxy::current(),
compositor_thread_loop_);
} else {
host_ = cc::LayerTreeHost::CreateSingleThreaded(
- this, this, context_factory_->GetSharedBitmapManager(), settings);
+ this,
+ this,
+ context_factory_->GetSharedBitmapManager(),
+ settings,
+ base::MessageLoopProxy::current());
}
UMA_HISTOGRAM_TIMES("GPU.CreateBrowserCompositor",
base::TimeTicks::Now() - before_create);
« no previous file with comments | « mojo/examples/compositor_app/compositor_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698