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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 10915091: Combine audio decoding and video decoding onto a single thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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
« no previous file with comments | « content/renderer/media/media_stream_impl.cc ('k') | media/base/message_loop_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2493 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_impl.cc ('k') | media/base/message_loop_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698