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

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

Issue 10411066: Revert 137988 - VAVDA is the hardware video decode accelerator for Chrome on Linux and ChromeOS for… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/public/common/content_switches.cc ('k') | no next file » | 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 2217 matching lines...) Expand 10 before | Expand all | Expand 10 after
2228 // from the perspective of the audio renderer. 2228 // from the perspective of the audio renderer.
2229 audio_source_provider = new RenderAudioSourceProvider(); 2229 audio_source_provider = new RenderAudioSourceProvider();
2230 2230
2231 // Add the chrome specific audio renderer, using audio_source_provider 2231 // Add the chrome specific audio renderer, using audio_source_provider
2232 // as the sink. 2232 // as the sink.
2233 media::AudioRendererImpl* audio_renderer = 2233 media::AudioRendererImpl* audio_renderer =
2234 new media::AudioRendererImpl(audio_source_provider); 2234 new media::AudioRendererImpl(audio_source_provider);
2235 collection->AddAudioRenderer(audio_renderer); 2235 collection->AddAudioRenderer(audio_renderer);
2236 } 2236 }
2237 2237
2238 // Currently only cros has any HW video decode support in 2238 // Currently only cros/arm has any HW video decode support in
2239 // GpuVideoDecodeAccelerator so we don't even try to use it on other 2239 // GpuVideoDecodeAccelerator so we don't even try to use it on other
2240 // platforms. This is a startup-time optimization. When new VDA 2240 // platforms. This is a startup-time optimization. When new VDA
2241 // implementations are added, relax the #if below. 2241 // implementations are added, relax the #if above.
2242 #if defined(OS_CHROMEOS) 2242 #if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL)
2243 // Note we don't actually use the result of this blind down-cast unless it's 2243 // Note we don't actually use the result of this blind down-cast unless it's
2244 // valid (not NULL and of the right type). 2244 // valid (not NULL and of the right type).
2245 WebGraphicsContext3DCommandBufferImpl* context3d = 2245 WebGraphicsContext3DCommandBufferImpl* context3d =
2246 static_cast<WebGraphicsContext3DCommandBufferImpl*>( 2246 static_cast<WebGraphicsContext3DCommandBufferImpl*>(
2247 webview()->graphicsContext3D()); 2247 webview()->graphicsContext3D());
2248 if (context_is_web_graphics_context_3d_command_buffer_impl_ && context3d) { 2248 if (context_is_web_graphics_context_3d_command_buffer_impl_ && context3d) {
2249 MessageLoop* factories_loop = 2249 MessageLoop* factories_loop =
2250 RenderThreadImpl::current()->compositor_thread() ? 2250 RenderThreadImpl::current()->compositor_thread() ?
2251 RenderThreadImpl::current()->compositor_thread()->GetWebThread() 2251 RenderThreadImpl::current()->compositor_thread()->GetWebThread()
2252 ->message_loop() : 2252 ->message_loop() :
(...skipping 3172 matching lines...) Expand 10 before | Expand all | Expand 10 after
5425 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5425 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5426 return !!RenderThreadImpl::current()->compositor_thread(); 5426 return !!RenderThreadImpl::current()->compositor_thread();
5427 } 5427 }
5428 5428
5429 void RenderViewImpl::OnJavaBridgeInit() { 5429 void RenderViewImpl::OnJavaBridgeInit() {
5430 DCHECK(!java_bridge_dispatcher_); 5430 DCHECK(!java_bridge_dispatcher_);
5431 #if defined(ENABLE_JAVA_BRIDGE) 5431 #if defined(ENABLE_JAVA_BRIDGE)
5432 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); 5432 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this);
5433 #endif 5433 #endif
5434 } 5434 }
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698