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

Unified Diff: content/renderer/media/media_stream_impl.cc

Issue 10855051: Use enum instead of string in MessageLoopFactory::GetMessageLoop* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update player_wtl Created 8 years, 4 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
« no previous file with comments | « no previous file | content/renderer/render_view_impl.cc » ('j') | content/renderer/render_view_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_impl.cc
diff --git a/content/renderer/media/media_stream_impl.cc b/content/renderer/media/media_stream_impl.cc
index b68d34d2a4ecc375730cbc1efdef9117d22b74c4..4fe59d849d3ed2f11e3c04c8fa6d11973e989acc 100644
--- a/content/renderer/media/media_stream_impl.cc
+++ b/content/renderer/media/media_stream_impl.cc
@@ -486,7 +486,8 @@ scoped_refptr<media::VideoDecoder> MediaStreamImpl::CreateLocalVideoDecoder(
<< video_session_id;
return new CaptureVideoDecoder(
- message_loop_factory->GetMessageLoopProxy("CaptureVideoDecoderThread"),
+ message_loop_factory->GetMessageLoopProxy(
+ media::MessageLoopFactory::VIDEO_DECODER),
video_session_id,
vc_manager_.get(),
capability);
@@ -502,7 +503,8 @@ scoped_refptr<media::VideoDecoder> MediaStreamImpl::CreateRemoteVideoDecoder(
<< stream->label();
return new RTCVideoDecoder(
- message_loop_factory->GetMessageLoopProxy("RtcVideoDecoderThread"),
+ message_loop_factory->GetMessageLoopProxy(
+ media::MessageLoopFactory::VIDEO_DECODER),
Ami GONE FROM CHROMIUM 2012/08/09 17:19:39 This change makes it so that a single thread is us
xhwang 2012/08/10 01:04:28 As per scherkus@, either local or remote video dec
base::MessageLoopProxy::current(),
stream->video_tracks()->at(0));
}
« no previous file with comments | « no previous file | content/renderer/render_view_impl.cc » ('j') | content/renderer/render_view_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698