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

Unified Diff: content/browser/gpu/gpu_data_manager_impl_private.cc

Issue 188143003: Ensure that pepper plugins honor the GPU H/W video decode blacklist and the disable-accelerated-vid… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 10 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
Index: content/browser/gpu/gpu_data_manager_impl_private.cc
===================================================================
--- content/browser/gpu/gpu_data_manager_impl_private.cc (revision 254462)
+++ content/browser/gpu/gpu_data_manager_impl_private.cc (working copy)
@@ -805,6 +805,12 @@
prefs->pepper_3d_enabled = false;
}
#endif
+
+ if (!IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE) &&
+ !CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableAcceleratedVideoDecode)) {
+ prefs->accelerated_video_decode_enabled = true;
+ }
}
void GpuDataManagerImplPrivate::DisableHardwareAcceleration() {
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.h » ('j') | ppapi/proxy/ppb_video_decoder_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698