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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 17114008: cc: Remove cc::Thread and cc::ThreadImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-thread: NULLrefptrs Created 7 years, 6 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/tree_synchronizer_unittest.cc ('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/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index c5560e61684d5a47b23ab6b2013888845634e40d..dc13cf693fd6491fce9a79c4de9ca1e183127fca 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -14,9 +14,9 @@
#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
+#include "base/single_thread_task_runner.h"
#include "base/synchronization/lock.h"
#include "base/threading/thread.h"
-#include "cc/base/thread_impl.h"
#include "cc/input/input_handler.h"
#include "cc/layers/layer.h"
#include "cc/output/context_provider.h"
@@ -216,12 +216,11 @@ void CompositorImpl::SetVisible(bool visible) {
if (UsesDirectGL())
settings.should_clear_root_render_pass = false;
- scoped_ptr<cc::Thread> impl_thread;
- if (g_impl_thread)
- impl_thread = cc::ThreadImpl::CreateForDifferentThread(
- g_impl_thread->message_loop()->message_loop_proxy());
+ scoped_refptr<base::SingleThreadTaskRunner> impl_thread_task_runner =
+ g_impl_thread ? g_impl_thread->message_loop()->message_loop_proxy()
+ : NULL;
- host_ = cc::LayerTreeHost::Create(this, settings, impl_thread.Pass());
+ host_ = cc::LayerTreeHost::Create(this, settings, impl_thread_task_runner);
host_->SetRootLayer(root_layer_);
host_->SetVisible(true);
« no previous file with comments | « cc/trees/tree_synchronizer_unittest.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698