| 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 2481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2492 RenderThreadImpl::current()->compositor_thread() ? | 2492 RenderThreadImpl::current()->compositor_thread() ? |
| 2493 RenderThreadImpl::current()->compositor_thread()->GetWebThread() | 2493 RenderThreadImpl::current()->compositor_thread()->GetWebThread() |
| 2494 ->message_loop()->message_loop_proxy() : | 2494 ->message_loop()->message_loop_proxy() : |
| 2495 base::MessageLoopProxy::current(); | 2495 base::MessageLoopProxy::current(); |
| 2496 GpuChannelHost* gpu_channel_host = | 2496 GpuChannelHost* gpu_channel_host = |
| 2497 RenderThreadImpl::current()->EstablishGpuChannelSync( | 2497 RenderThreadImpl::current()->EstablishGpuChannelSync( |
| 2498 content::CAUSE_FOR_GPU_LAUNCH_VIDEODECODEACCELERATOR_INITIALIZE); | 2498 content::CAUSE_FOR_GPU_LAUNCH_VIDEODECODEACCELERATOR_INITIALIZE); |
| 2499 collection->GetVideoDecoders()->push_back(new media::GpuVideoDecoder( | 2499 collection->GetVideoDecoders()->push_back(new media::GpuVideoDecoder( |
| 2500 base::Bind(&media::MessageLoopFactory::GetMessageLoop, | 2500 base::Bind(&media::MessageLoopFactory::GetMessageLoop, |
| 2501 base::Unretained(message_loop_factory), | 2501 base::Unretained(message_loop_factory), |
| 2502 media::MessageLoopFactory::kVideoDecoder), | 2502 media::MessageLoopFactory::kDecoder), |
| 2503 factories_loop, | 2503 factories_loop, |
| 2504 new RendererGpuVideoDecoderFactories( | 2504 new RendererGpuVideoDecoderFactories( |
| 2505 gpu_channel_host, factories_loop, context3d))); | 2505 gpu_channel_host, factories_loop, context3d))); |
| 2506 } | 2506 } |
| 2507 | 2507 |
| 2508 WebMediaPlayer* media_player = | 2508 WebMediaPlayer* media_player = |
| 2509 content::GetContentClient()->renderer()->OverrideCreateWebMediaPlayer( | 2509 content::GetContentClient()->renderer()->OverrideCreateWebMediaPlayer( |
| 2510 this, frame, client, AsWeakPtr(), collection, audio_source_provider, | 2510 this, frame, client, AsWeakPtr(), collection, audio_source_provider, |
| 2511 audio_source_provider, message_loop_factory, media_stream_impl_, | 2511 audio_source_provider, message_loop_factory, media_stream_impl_, |
| 2512 render_media_log); | 2512 render_media_log); |
| (...skipping 3532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6045 | 6045 |
| 6046 updating_frame_tree_ = true; | 6046 updating_frame_tree_ = true; |
| 6047 active_frame_id_map_.clear(); | 6047 active_frame_id_map_.clear(); |
| 6048 | 6048 |
| 6049 target_process_id_ = process_id; | 6049 target_process_id_ = process_id; |
| 6050 target_routing_id_ = route_id; | 6050 target_routing_id_ = route_id; |
| 6051 CreateFrameTree(webview()->mainFrame(), frames); | 6051 CreateFrameTree(webview()->mainFrame(), frames); |
| 6052 | 6052 |
| 6053 updating_frame_tree_ = false; | 6053 updating_frame_tree_ = false; |
| 6054 } | 6054 } |
| OLD | NEW |