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

Unified Diff: ui/compositor/compositor.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
« cc/trees/thread_proxy.cc ('K') | « content/renderer/render_thread_impl.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..123fe70ad9bc64967bbaa9c9802868aea18d0b39 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -20,6 +20,7 @@
#include "cc/layers/layer.h"
#include "cc/output/context_provider.h"
#include "cc/trees/layer_tree_host.h"
+#include "cc/trees/main_thread_task_runner.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/compositor/compositor_observer.h"
#include "ui/compositor/compositor_switches.h"
@@ -142,10 +143,12 @@ Compositor::Compositor(gfx::AcceleratedWidget widget,
this,
context_factory_->GetSharedBitmapManager(),
settings,
+ make_scoped_refptr(new cc::DefaultMainThreadTaskRunner()),
compositor_thread_loop_);
} else {
host_ = cc::LayerTreeHost::CreateSingleThreaded(
- this, this, context_factory_->GetSharedBitmapManager(), settings);
+ this, this, context_factory_->GetSharedBitmapManager(), settings,
+ make_scoped_refptr(new cc::DefaultMainThreadTaskRunner()));
}
UMA_HISTOGRAM_TIMES("GPU.CreateBrowserCompositor",
base::TimeTicks::Now() - before_create);
« cc/trees/thread_proxy.cc ('K') | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698