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

Unified Diff: media/filters/gpu_video_decoder.h

Issue 65803002: Replace MessageLoopProxy with SingleThreadTaskRunner for media/filters/ + associated code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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
« no previous file with comments | « media/filters/gpu_video_accelerator_factories.h ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/gpu_video_decoder.h
diff --git a/media/filters/gpu_video_decoder.h b/media/filters/gpu_video_decoder.h
index 5f43d84abbce2c96950d58bcb5e0f7159241d735..f4d7f28f72284418e908b186880ca6ecf2e9c9fe 100644
--- a/media/filters/gpu_video_decoder.h
+++ b/media/filters/gpu_video_decoder.h
@@ -19,8 +19,8 @@
template <class T> class scoped_refptr;
namespace base {
-class MessageLoopProxy;
class SharedMemory;
+class SingleThreadTaskRunner;
}
namespace media {
@@ -35,7 +35,7 @@ class MEDIA_EXPORT GpuVideoDecoder
: public VideoDecoder,
public VideoDecodeAccelerator::Client {
public:
- // The message loop of |factories| will be saved to |gvd_loop_proxy_|.
+ // The message loop of |factories| will be saved to |gvd_task_runner_|.
explicit GpuVideoDecoder(
const scoped_refptr<GpuVideoAcceleratorFactories>& factories,
const scoped_refptr<MediaLog>& media_log);
@@ -126,7 +126,7 @@ class MEDIA_EXPORT GpuVideoDecoder
bool needs_bitstream_conversion_;
// Message loop which this class and |factories_| run on.
- scoped_refptr<base::MessageLoopProxy> gvd_loop_proxy_;
+ scoped_refptr<base::SingleThreadTaskRunner> gvd_task_runner_;
base::WeakPtrFactory<GpuVideoDecoder> weak_factory_;
base::WeakPtr<GpuVideoDecoder> weak_this_;
« no previous file with comments | « media/filters/gpu_video_accelerator_factories.h ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698