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

Unified Diff: content/common/gpu/media/gpu_video_decode_accelerator.h

Issue 1134113002: content/common: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix CrOS build. 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/common/gpu/media/gpu_video_decode_accelerator.h
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.h b/content/common/gpu/media/gpu_video_decode_accelerator.h
index 85a46522b00f2cc6093e151cc80e137d1139f6cb..cab2a2285cd346add4ea6ddbbfe3793a39fc05dc 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.h
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.h
@@ -20,10 +20,6 @@
#include "media/video/video_decode_accelerator.h"
#include "ui/gfx/geometry/size.h"
-namespace base {
-class MessageLoopProxy;
-}
-
namespace content {
class GpuVideoDecodeAccelerator
@@ -38,7 +34,7 @@ class GpuVideoDecodeAccelerator
GpuVideoDecodeAccelerator(
int32 host_route_id,
GpuCommandBufferStub* stub,
- const scoped_refptr<base::MessageLoopProxy>& io_message_loop);
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
// IPC::Listener implementation.
bool OnMessageReceived(const IPC::Message& message) override;
@@ -140,11 +136,11 @@ class GpuVideoDecodeAccelerator
// destroy the VDA.
base::WaitableEvent filter_removed_;
- // GPU child message loop.
- const scoped_refptr<base::MessageLoopProxy> child_message_loop_;
+ // GPU child thread task runner.
+ const scoped_refptr<base::SingleThreadTaskRunner> child_task_runner_;
- // GPU IO message loop.
- const scoped_refptr<base::MessageLoopProxy> io_message_loop_;
+ // GPU IO thread task runner.
+ const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
// Weak pointers will be invalidated on IO thread.
base::WeakPtrFactory<Client> weak_factory_for_io_;
« no previous file with comments | « content/common/gpu/media/fake_video_decode_accelerator.cc ('k') | content/common/gpu/media/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698