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

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: Test build fix. Created 5 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
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));
« no previous file with comments | « content/browser/quota/usage_tracker_unittest.cc ('k') | content/browser/renderer_host/input/gesture_event_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698