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

Side by Side Diff: content/renderer/render_view_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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 2407 matching lines...) Expand 10 before | Expand all | Expand 10 after
2418 if (context3d) { 2418 if (context3d) {
2419 MessageLoop* factories_loop = 2419 MessageLoop* factories_loop =
2420 RenderThreadImpl::current()->compositor_thread() ? 2420 RenderThreadImpl::current()->compositor_thread() ?
2421 RenderThreadImpl::current()->compositor_thread()->GetWebThread() 2421 RenderThreadImpl::current()->compositor_thread()->GetWebThread()
2422 ->message_loop() : 2422 ->message_loop() :
2423 MessageLoop::current(); 2423 MessageLoop::current();
2424 GpuChannelHost* gpu_channel_host = 2424 GpuChannelHost* gpu_channel_host =
2425 RenderThreadImpl::current()->EstablishGpuChannelSync( 2425 RenderThreadImpl::current()->EstablishGpuChannelSync(
2426 content::CAUSE_FOR_GPU_LAUNCH_VIDEODECODEACCELERATOR_INITIALIZE); 2426 content::CAUSE_FOR_GPU_LAUNCH_VIDEODECODEACCELERATOR_INITIALIZE);
2427 collection->AddVideoDecoder(new media::GpuVideoDecoder( 2427 collection->AddVideoDecoder(new media::GpuVideoDecoder(
2428 message_loop_factory->GetMessageLoop("GpuVideoDecoder"), 2428 message_loop_factory->GetMessageLoop(
scherkus (not reviewing) 2012/08/09 17:13:24 inside GVD it grabs the proxy
xhwang 2012/08/10 01:04:28 Done.
2429 media::MessageLoopFactory::VIDEO_DECODER),
2429 factories_loop, 2430 factories_loop,
2430 new RendererGpuVideoDecoderFactories( 2431 new RendererGpuVideoDecoderFactories(
2431 gpu_channel_host, factories_loop, context3d))); 2432 gpu_channel_host, factories_loop, context3d)));
2432 } 2433 }
2433 2434
2434 WebMediaPlayer* media_player = 2435 WebMediaPlayer* media_player =
2435 content::GetContentClient()->renderer()->OverrideCreateWebMediaPlayer( 2436 content::GetContentClient()->renderer()->OverrideCreateWebMediaPlayer(
2436 this, frame, client, AsWeakPtr(), collection, audio_source_provider, 2437 this, frame, client, AsWeakPtr(), collection, audio_source_provider,
2437 audio_source_provider, message_loop_factory, media_stream_impl_, 2438 audio_source_provider, message_loop_factory, media_stream_impl_,
2438 render_media_log); 2439 render_media_log);
(...skipping 3328 matching lines...) Expand 10 before | Expand all | Expand 10 after
5767 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5768 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5768 return !!RenderThreadImpl::current()->compositor_thread(); 5769 return !!RenderThreadImpl::current()->compositor_thread();
5769 } 5770 }
5770 5771
5771 void RenderViewImpl::OnJavaBridgeInit() { 5772 void RenderViewImpl::OnJavaBridgeInit() {
5772 DCHECK(!java_bridge_dispatcher_); 5773 DCHECK(!java_bridge_dispatcher_);
5773 #if defined(ENABLE_JAVA_BRIDGE) 5774 #if defined(ENABLE_JAVA_BRIDGE)
5774 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); 5775 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this);
5775 #endif 5776 #endif
5776 } 5777 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698