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

Unified Diff: content/renderer/render_view_impl.cc

Issue 10831291: Temporarily disabling H/W video decode on Windows to see if the crashes in the gpu process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
===================================================================
--- content/renderer/render_view_impl.cc (revision 150949)
+++ content/renderer/render_view_impl.cc (working copy)
@@ -2407,11 +2407,14 @@
// Accelerated video decode is not enabled by default on Linux.
// crbug.com/137247
bool use_accelerated_video_decode = false;
-#if defined(OS_CHROMEOS) || defined(OS_WIN)
+#if defined(OS_CHROMEOS)
use_accelerated_video_decode = true;
-#endif
+#elif defined(OS_WIN)
Ami GONE FROM CHROMIUM 2012/08/13 19:38:28 This isn't necessary (false is the default value a
ananta 2012/08/13 19:43:59 I added the #else to prevent the CommandLine switc
Ami GONE FROM CHROMIUM 2012/08/13 19:51:47 Did you miss that there's an &= in there?
ananta 2012/08/13 19:52:12 Removed the #elif OS_WIN check here. The &= expres
+ use_accelerated_video_decode = false;
+#else
use_accelerated_video_decode &= !CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableAcceleratedVideoDecode);
+#endif
base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> context3d =
use_accelerated_video_decode ?
RenderThreadImpl::current()->GetGpuVDAContext3D() :
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698