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

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

Issue 1135943005: Revert of content/common: 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/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 cab2a2285cd346add4ea6ddbbfe3793a39fc05dc..85a46522b00f2cc6093e151cc80e137d1139f6cb 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.h
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.h
@@ -20,6 +20,10 @@
#include "media/video/video_decode_accelerator.h"
#include "ui/gfx/geometry/size.h"
+namespace base {
+class MessageLoopProxy;
+}
+
namespace content {
class GpuVideoDecodeAccelerator
@@ -34,7 +38,7 @@
GpuVideoDecodeAccelerator(
int32 host_route_id,
GpuCommandBufferStub* stub,
- const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
+ const scoped_refptr<base::MessageLoopProxy>& io_message_loop);
// IPC::Listener implementation.
bool OnMessageReceived(const IPC::Message& message) override;
@@ -136,11 +140,11 @@
// destroy the VDA.
base::WaitableEvent filter_removed_;
- // GPU child thread task runner.
- const scoped_refptr<base::SingleThreadTaskRunner> child_task_runner_;
+ // GPU child message loop.
+ const scoped_refptr<base::MessageLoopProxy> child_message_loop_;
- // GPU IO thread task runner.
- const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
+ // GPU IO message loop.
+ const scoped_refptr<base::MessageLoopProxy> io_message_loop_;
// 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