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 ce153f53386b2feeaafb97210b25064747450633..4a120522049c0c01aeef71edcda3fd2649765f83 100644 |
--- a/content/browser/renderer_host/compositor_impl_android.cc |
+++ b/content/browser/renderer_host/compositor_impl_android.cc |
@@ -82,7 +82,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 { |
@@ -130,7 +130,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_; |
}; |
@@ -307,7 +307,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); |
} |
@@ -657,7 +657,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)); |