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

Unified Diff: gpu/ipc/service/image_transport_surface_overlay_mac.mm

Issue 2132593002: Remove remaining calls to deprecated MessageLoop methods on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: h264_vt_encoder_unittest.cc Created 4 years, 5 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: gpu/ipc/service/image_transport_surface_overlay_mac.mm
diff --git a/gpu/ipc/service/image_transport_surface_overlay_mac.mm b/gpu/ipc/service/image_transport_surface_overlay_mac.mm
index 0c38129c29c672b586d0c9913b931f4b0063224a..6a64526a4fd35d4575c30458b07ad07e47ef2809 100644
--- a/gpu/ipc/service/image_transport_surface_overlay_mac.mm
+++ b/gpu/ipc/service/image_transport_surface_overlay_mac.mm
@@ -22,6 +22,7 @@ typedef void* GLeglImageOES;
#include "base/bind.h"
#include "base/bind_helpers.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "base/trace_event/trace_event.h"
#include "gpu/ipc/common/gpu_messages.h"
#include "gpu/ipc/service/gpu_channel_manager.h"
@@ -380,7 +381,7 @@ void ImageTransportSurfaceOverlayMac::OnGpuSwitched() {
// Post a task holding a reference to the new GL context. The reason for
// this is to avoid creating-then-destroying the context for every image
// transport surface that is observing the GPU switch.
- base::MessageLoop::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(&IOSurfaceContextNoOp, context_on_new_gpu));
}

Powered by Google App Engine
This is Rietveld 408576698