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

Unified Diff: media/filters/video_frame_stream.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/video_decoder_selector.cc ('k') | media/filters/video_frame_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/video_frame_stream.h
diff --git a/media/filters/video_frame_stream.h b/media/filters/video_frame_stream.h
index f315677247c4876fee55e79ff999f66e7107d68c..f0f91939704021bfadc300b8b83515a1d9311747 100644
--- a/media/filters/video_frame_stream.h
+++ b/media/filters/video_frame_stream.h
@@ -18,7 +18,7 @@
#include "media/base/video_decoder.h"
namespace base {
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
}
namespace media {
@@ -44,9 +44,10 @@ class MEDIA_EXPORT VideoFrameStream {
// Indicates completion of a VideoFrameStream read.
typedef base::Callback<void(Status, const scoped_refptr<VideoFrame>&)> ReadCB;
- VideoFrameStream(const scoped_refptr<base::MessageLoopProxy>& message_loop,
- ScopedVector<VideoDecoder> decoders,
- const SetDecryptorReadyCB& set_decryptor_ready_cb);
+ VideoFrameStream(
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
+ ScopedVector<VideoDecoder> decoders,
+ const SetDecryptorReadyCB& set_decryptor_ready_cb);
virtual ~VideoFrameStream();
// Initializes the VideoFrameStream and returns the initialization result
@@ -134,7 +135,7 @@ class MEDIA_EXPORT VideoFrameStream {
void StopDecoder();
void OnDecoderStopped();
- scoped_refptr<base::MessageLoopProxy> message_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
base::WeakPtrFactory<VideoFrameStream> weak_factory_;
State state_;
« no previous file with comments | « media/filters/video_decoder_selector.cc ('k') | media/filters/video_frame_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698