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

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

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: 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 f5ec1e5e42ebd45c37ad32764eaacc1e6bc91fed..fa921f8bdcb3f5d27db4ebee2b52ea5af8c5220b 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -81,7 +81,7 @@ class OutputSurfaceWithoutParent : public cc::OutputSurface {
capabilities_.adjust_deadline_for_parent = false;
capabilities_.max_frames_pending = 2;
compositor_impl_ = compositor_impl;
- main_thread_ = base::MessageLoopProxy::current();
+ main_thread_ = base::ThreadTaskRunnerHandle::Get();
}
void SwapBuffers(cc::CompositorFrame* frame) override {
@@ -129,7 +129,7 @@ class OutputSurfaceWithoutParent : public cc::OutputSurface {
gfx::SwapResult)>
swap_buffers_completion_callback_;
- scoped_refptr<base::MessageLoopProxy> main_thread_;
+ scoped_refptr<base::SingleThreadTaskRunner> main_thread_;
base::WeakPtr<CompositorImpl> compositor_impl_;
};
@@ -300,7 +300,7 @@ void CompositorImpl::PostComposite(CompositingTrigger trigger) {
// Unretained because we cancel the task on shutdown.
current_composite_task_.reset(new base::CancelableClosure(
base::Bind(&CompositorImpl::Composite, base::Unretained(this), trigger)));
- base::MessageLoop::current()->PostDelayedTask(
+ base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
FROM_HERE, current_composite_task_->callback(), delay);
}
@@ -646,7 +646,7 @@ void CompositorImpl::CreateOutputSurface() {
real_output_surface.Pass(), manager, HostSharedBitmapManager::current(),
BrowserGpuMemoryBufferManager::current(),
host_->settings().renderer_settings,
- base::MessageLoopProxy::current()));
+ base::ThreadTaskRunnerHandle::Get()));
scoped_ptr<cc::SurfaceDisplayOutputSurface> surface_output_surface(
new cc::SurfaceDisplayOutputSurface(
manager, surface_id_allocator_.get(), context_provider));

Powered by Google App Engine
This is Rietveld 408576698