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

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

Issue 7790016: Hookup Gpu blacklist with NaCl Pepper3D access. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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
Index: content/browser/gpu/gpu_data_manager.cc
===================================================================
--- content/browser/gpu/gpu_data_manager.cc (revision 98703)
+++ content/browser/gpu/gpu_data_manager.cc (working copy)
@@ -21,6 +21,7 @@
#include "content/gpu/gpu_info_collector.h"
#include "ui/gfx/gl/gl_implementation.h"
#include "ui/gfx/gl/gl_switches.h"
+#include "webkit/plugins/plugin_switches.h"
namespace {
@@ -216,9 +217,12 @@
DCHECK(command_line);
uint32 flags = gpu_feature_flags_.flags();
- if ((flags & GpuFeatureFlags::kGpuFeatureWebgl) &&
- !command_line->HasSwitch(switches::kDisableExperimentalWebGL))
- command_line->AppendSwitch(switches::kDisableExperimentalWebGL);
+ if ((flags & GpuFeatureFlags::kGpuFeatureWebgl)) {
+ if (!command_line->HasSwitch(switches::kDisableExperimentalWebGL))
+ command_line->AppendSwitch(switches::kDisableExperimentalWebGL);
+ if (!command_line->HasSwitch(switches::kDisablePepper3dForUntrustedUse))
+ command_line->AppendSwitch(switches::kDisablePepper3dForUntrustedUse);
+ }
if ((flags & GpuFeatureFlags::kGpuFeatureMultisampling) &&
!command_line->HasSwitch(switches::kDisableGLMultisampling))
command_line->AppendSwitch(switches::kDisableGLMultisampling);
« no previous file with comments | « no previous file | ppapi/c/private/ppb_gpu_blacklist_private.h » ('j') | ppapi/c/private/ppb_gpu_blacklist_private.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698