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

Unified Diff: content/renderer/gpu/compositor_thread.cc

Issue 12386078: Remove CompositorThread dependency on WebThread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 9 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 | « content/renderer/gpu/compositor_thread.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/compositor_thread.cc
diff --git a/content/renderer/gpu/compositor_thread.cc b/content/renderer/gpu/compositor_thread.cc
index cde2e933d8ac22a16ab1c6cfd57d1dec98168c2d..7497b26cc65337e6c80cb8727eb9e395847b7072 100644
--- a/content/renderer/gpu/compositor_thread.cc
+++ b/content/renderer/gpu/compositor_thread.cc
@@ -100,6 +100,7 @@ void SetHighThreadPriority() {
CompositorThread::CompositorThread(IPC::Listener* main_listener)
: thread_("Compositor") {
+ thread_.Start();
filter_ =
new InputEventFilter(main_listener,
thread_.message_loop()->message_loop_proxy(),
@@ -161,6 +162,11 @@ void CompositorThread::AddInputHandlerOnCompositorThread(
routing_id, input_handler, main_loop, render_view_impl));
}
+
+base::MessageLoopProxy* CompositorThread::message_loop_proxy() const {
+ return thread_.message_loop()->message_loop_proxy();
+}
+
void CompositorThread::RemoveInputHandler(int routing_id) {
DCHECK_EQ(MessageLoop::current(), thread_.message_loop());
« no previous file with comments | « content/renderer/gpu/compositor_thread.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698