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

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: 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
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 b0f967ab54641f4edc6d367e73222c5ec029d32b..0d99a4c8c802665d7d6c8f6d306e5f54bab96609 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,13 +201,13 @@ class CONTENT_EXPORT RTCVideoDecoder
// The size of the incoming video frames.
gfx::Size frame_size_;
- // Weak pointer to this, which can be dereferenced only on |vda_loop_proxy_|.
+ // Weak pointer to this, which can be dereferenced only on |vda_task_runner_|.
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_;
« no previous file with comments | « content/renderer/media/renderer_gpu_video_accelerator_factories.cc ('k') | content/renderer/media/rtc_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698