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

Unified Diff: content/renderer/media/rtc_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: Created 7 years, 1 month 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/renderer/media/rtc_video_decoder.h
diff --git a/content/renderer/media/rtc_video_decoder.h b/content/renderer/media/rtc_video_decoder.h
index d73fc143d1b58b13ac03033ba94f37963bff741e..24b11b41e30fcd1d4e98d1e5a761e6dcf2134cf6 100644
--- a/content/renderer/media/rtc_video_decoder.h
+++ b/content/renderer/media/rtc_video_decoder.h
@@ -112,7 +112,7 @@ class CONTENT_EXPORT RTCVideoDecoder
FRIEND_TEST_ALL_PREFIXES(RTCVideoDecoderTest, IsBufferAfterReset);
FRIEND_TEST_ALL_PREFIXES(RTCVideoDecoderTest, IsFirstBufferAfterReset);
- // The meessage loop of |factories| will be saved to |vda_loop_proxy_|.
+ // The meessage loop of |factories| will be saved to |vda_task_runner_|.
RTCVideoDecoder(
const scoped_refptr<media::GpuVideoAcceleratorFactories>& factories);
@@ -201,14 +201,14 @@ class CONTENT_EXPORT RTCVideoDecoder
// The size of the incoming video frames.
gfx::Size frame_size_;
- // The weak pointer should live and die on the |vda_loop_proxy_|;
+ // The weak pointer should live and die on the |vda_task_runner_|;
base::WeakPtrFactory<RTCVideoDecoder> weak_factory_;
base::WeakPtr<RTCVideoDecoder> weak_this_;
scoped_refptr<media::GpuVideoAcceleratorFactories> factories_;
- // The message loop to run callbacks on. This is from |factories_|.
- scoped_refptr<base::MessageLoopProxy> vda_loop_proxy_;
+ // The task runner to run callbacks on. This is from |factories_|.
+ scoped_refptr<base::SingleThreadTaskRunner> vda_task_runner_;
// The texture target used for decoded pictures.
uint32 decoder_texture_target_;

Powered by Google App Engine
This is Rietveld 408576698