| 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 2493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2504 RenderThreadImpl::current()->compositor_thread() ? | 2504 RenderThreadImpl::current()->compositor_thread() ? |
| 2505 RenderThreadImpl::current()->compositor_thread()->GetWebThread() | 2505 RenderThreadImpl::current()->compositor_thread()->GetWebThread() |
| 2506 ->message_loop()->message_loop_proxy() : | 2506 ->message_loop()->message_loop_proxy() : |
| 2507 base::MessageLoopProxy::current(); | 2507 base::MessageLoopProxy::current(); |
| 2508 GpuChannelHost* gpu_channel_host = | 2508 GpuChannelHost* gpu_channel_host = |
| 2509 RenderThreadImpl::current()->EstablishGpuChannelSync( | 2509 RenderThreadImpl::current()->EstablishGpuChannelSync( |
| 2510 content::CAUSE_FOR_GPU_LAUNCH_VIDEODECODEACCELERATOR_INITIALIZE); | 2510 content::CAUSE_FOR_GPU_LAUNCH_VIDEODECODEACCELERATOR_INITIALIZE); |
| 2511 collection->GetVideoDecoders()->push_back(new media::GpuVideoDecoder( | 2511 collection->GetVideoDecoders()->push_back(new media::GpuVideoDecoder( |
| 2512 base::Bind(&media::MessageLoopFactory::GetMessageLoop, | 2512 base::Bind(&media::MessageLoopFactory::GetMessageLoop, |
| 2513 base::Unretained(message_loop_factory), | 2513 base::Unretained(message_loop_factory), |
| 2514 media::MessageLoopFactory::kVideoDecoder), | 2514 media::MessageLoopFactory::kDecoder), |
| 2515 factories_loop, | 2515 factories_loop, |
| 2516 new RendererGpuVideoDecoderFactories( | 2516 new RendererGpuVideoDecoderFactories( |
| 2517 gpu_channel_host, factories_loop, context3d))); | 2517 gpu_channel_host, factories_loop, context3d))); |
| 2518 } | 2518 } |
| 2519 | 2519 |
| 2520 WebMediaPlayer* media_player = | 2520 WebMediaPlayer* media_player = |
| 2521 content::GetContentClient()->renderer()->OverrideCreateWebMediaPlayer( | 2521 content::GetContentClient()->renderer()->OverrideCreateWebMediaPlayer( |
| 2522 this, frame, client, AsWeakPtr(), collection, audio_source_provider, | 2522 this, frame, client, AsWeakPtr(), collection, audio_source_provider, |
| 2523 audio_source_provider, message_loop_factory, media_stream_impl_, | 2523 audio_source_provider, message_loop_factory, media_stream_impl_, |
| 2524 render_media_log); | 2524 render_media_log); |
| (...skipping 3594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6119 | 6119 |
| 6120 updating_frame_tree_ = true; | 6120 updating_frame_tree_ = true; |
| 6121 active_frame_id_map_.clear(); | 6121 active_frame_id_map_.clear(); |
| 6122 | 6122 |
| 6123 target_process_id_ = process_id; | 6123 target_process_id_ = process_id; |
| 6124 target_routing_id_ = route_id; | 6124 target_routing_id_ = route_id; |
| 6125 CreateFrameTree(webview()->mainFrame(), frames); | 6125 CreateFrameTree(webview()->mainFrame(), frames); |
| 6126 | 6126 |
| 6127 updating_frame_tree_ = false; | 6127 updating_frame_tree_ = false; |
| 6128 } | 6128 } |
| OLD | NEW |