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

Unified Diff: gpu/command_buffer/service/gpu_switches.cc

Issue 10065025: Make it so you can add GPU switches by editing 2 files instead of 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « gpu/command_buffer/service/gpu_switches.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_switches.cc
diff --git a/gpu/command_buffer/service/gpu_switches.cc b/gpu/command_buffer/service/gpu_switches.cc
index 795df7e1094e962eb6d8ed0af2d6dc189cf1b69e..2000b9a9170720c50f2da24ecb7d381b221dfebe 100644
--- a/gpu/command_buffer/service/gpu_switches.cc
+++ b/gpu/command_buffer/service/gpu_switches.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "gpu/command_buffer/service/gpu_switches.h"
+#include "base/basictypes.h"
namespace switches {
@@ -18,4 +19,13 @@ const char kEnableGPUCommandLogging[] = "enable-gpu-command-logging";
// Turn on Calling GL Error after every command.
const char kEnableGPUDebugging[] = "enable-gpu-debugging";
+const char* kGpuSwitches[] = {
+ kCompileShaderAlwaysSucceeds,
+ kDisableGLSLTranslator,
+ kEnableGPUCommandLogging,
+ kEnableGPUDebugging,
+};
+
+const int kNumGpuSwitches = arraysize(kGpuSwitches);
+
} // namespace switches
« no previous file with comments | « gpu/command_buffer/service/gpu_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698