| OLD | NEW |
| 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 2416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2427 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl>(); | 2427 base::WeakPtr<WebGraphicsContext3DCommandBufferImpl>(); |
| 2428 if (context3d) { | 2428 if (context3d) { |
| 2429 MessageLoop* factories_loop = | 2429 MessageLoop* factories_loop = |
| 2430 RenderThreadImpl::current()->compositor_thread() ? | 2430 RenderThreadImpl::current()->compositor_thread() ? |
| 2431 RenderThreadImpl::current()->compositor_thread()->GetWebThread() | 2431 RenderThreadImpl::current()->compositor_thread()->GetWebThread() |
| 2432 ->message_loop() : | 2432 ->message_loop() : |
| 2433 MessageLoop::current(); | 2433 MessageLoop::current(); |
| 2434 GpuChannelHost* gpu_channel_host = | 2434 GpuChannelHost* gpu_channel_host = |
| 2435 RenderThreadImpl::current()->EstablishGpuChannelSync( | 2435 RenderThreadImpl::current()->EstablishGpuChannelSync( |
| 2436 content::CAUSE_FOR_GPU_LAUNCH_VIDEODECODEACCELERATOR_INITIALIZE); | 2436 content::CAUSE_FOR_GPU_LAUNCH_VIDEODECODEACCELERATOR_INITIALIZE); |
| 2437 collection->AddVideoDecoder(new media::GpuVideoDecoder( | 2437 collection->GetVideoDecoders()->push_back(new media::GpuVideoDecoder( |
| 2438 message_loop_factory->GetMessageLoop("GpuVideoDecoder"), | 2438 message_loop_factory->GetMessageLoop("GpuVideoDecoder"), |
| 2439 factories_loop, | 2439 factories_loop, |
| 2440 new RendererGpuVideoDecoderFactories( | 2440 new RendererGpuVideoDecoderFactories( |
| 2441 gpu_channel_host, factories_loop, context3d))); | 2441 gpu_channel_host, factories_loop, context3d))); |
| 2442 } | 2442 } |
| 2443 | 2443 |
| 2444 WebMediaPlayer* media_player = | 2444 WebMediaPlayer* media_player = |
| 2445 content::GetContentClient()->renderer()->OverrideCreateWebMediaPlayer( | 2445 content::GetContentClient()->renderer()->OverrideCreateWebMediaPlayer( |
| 2446 this, frame, client, AsWeakPtr(), collection, audio_source_provider, | 2446 this, frame, client, AsWeakPtr(), collection, audio_source_provider, |
| 2447 audio_source_provider, message_loop_factory, media_stream_impl_, | 2447 audio_source_provider, message_loop_factory, media_stream_impl_, |
| (...skipping 3336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5784 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5784 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
| 5785 return !!RenderThreadImpl::current()->compositor_thread(); | 5785 return !!RenderThreadImpl::current()->compositor_thread(); |
| 5786 } | 5786 } |
| 5787 | 5787 |
| 5788 void RenderViewImpl::OnJavaBridgeInit() { | 5788 void RenderViewImpl::OnJavaBridgeInit() { |
| 5789 DCHECK(!java_bridge_dispatcher_); | 5789 DCHECK(!java_bridge_dispatcher_); |
| 5790 #if defined(ENABLE_JAVA_BRIDGE) | 5790 #if defined(ENABLE_JAVA_BRIDGE) |
| 5791 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5791 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
| 5792 #endif | 5792 #endif |
| 5793 } | 5793 } |
| OLD | NEW |