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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 10501006: Connect up flash blacklist entries to GetSettingInt (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clarify comments Created 8 years, 6 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 | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 218f6f9d066709a353cf833648bbba9615198971..ae2fa0dd4d5ecd5695ac7b4d9a4c544f96fd411f 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -428,6 +428,9 @@ WebPreferences WebContentsImpl::GetWebkitPrefs(RenderViewHost* rvh,
!command_line.HasSwitch(switches::kDisable3DAPIs) &&
!command_line.HasSwitch(switches::kDisableExperimentalWebGL);
+ prefs.flash_3d_enabled = prefs.flash_stage3d_enabled =
+ GpuProcessHost::gpu_enabled();
+
prefs.gl_multisampling_enabled =
!command_line.HasSwitch(switches::kDisableGLMultisampling);
prefs.privileged_webgl_extensions_enabled =
@@ -509,6 +512,10 @@ WebPreferences WebContentsImpl::GetWebkitPrefs(RenderViewHost* rvh,
prefs.accelerated_compositing_enabled = false;
if (blacklist_type & content::GPU_FEATURE_TYPE_WEBGL)
prefs.experimental_webgl_enabled = false;
+ if (blacklist_type & content::GPU_FEATURE_TYPE_FLASH3D)
+ prefs.flash_3d_enabled = false;
+ if (blacklist_type & content::GPU_FEATURE_TYPE_FLASH_STAGE3D)
+ prefs.flash_stage3d_enabled = false;
if (blacklist_type & content::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS)
prefs.accelerated_2d_canvas_enabled = false;
if (blacklist_type & content::GPU_FEATURE_TYPE_MULTISAMPLING)
« no previous file with comments | « no previous file | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698