Index: ui/gl/gl_switches.cc |
diff --git a/ui/gl/gl_switches.cc b/ui/gl/gl_switches.cc |
index c197cf74ea6f540efc1e27223eee28c5fdd4c3ac..eec3bb8b2ba361736c8c29c63496fa1aa2bbb8ee 100644 |
--- a/ui/gl/gl_switches.cc |
+++ b/ui/gl/gl_switches.cc |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "ui/gl/gl_switches.h" |
+#include "base/basictypes.h" |
namespace gfx { |
@@ -24,6 +25,9 @@ const char kDisableGpuVsync[] = "disable-gpu-vsync"; |
const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; |
const char kEnableGPUClientLogging[] = "enable-gpu-client-logging"; |
+// Turns on calling TRACE for every GL call. |
+const char kEnableGPUServiceTracing[] = "enable-gpu-service-tracing"; |
+ |
// Select which implementation of GL the GPU process should use. Options are: |
// desktop: whatever desktop OpenGL the user has installed (Linux and Mac |
// default). |
@@ -58,5 +62,18 @@ const char kGpuSwitchingOptionNameAutomatic[] = "automatic"; |
// library first, but fall back to regular library if loading fails. |
const char kTestGLLib[] = "test-gl-lib"; |
+// This is the list of switches passed from this file that are passed from the |
+// GpuProcessHost to the GPU Process. Add your switch to this list if you need |
+// to read it in the GPU process, else don't add it. |
+const char* kGLSwitchesCopiedFromGpuProcessHost[] = { |
+ kDisableGpuVsync, |
+ kEnableGPUServiceLogging, |
+ kEnableGPUServiceTracing, |
+ kGpuNoContextLost, |
+ kGpuSwitching, |
+}; |
+const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
+ arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
+ |
} // namespace switches |