summaryrefslogtreecommitdiffstats
path: root/ui/gfx/gl/gl_switches.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/gl/gl_switches.cc')
-rw-r--r--ui/gfx/gl/gl_switches.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/ui/gfx/gl/gl_switches.cc b/ui/gfx/gl/gl_switches.cc
new file mode 100644
index 0000000..b11075d
--- /dev/null
+++ b/ui/gfx/gl/gl_switches.cc
@@ -0,0 +1,20 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/gfx/gl/gl_switches.h"
+
+namespace switches {
+
+// Stop the GPU from synchronizing on the vsync before presenting.
+const char kDisableGpuVsync[] = "disable-gpu-vsync";
+
+// Select which implementation of GL the GPU process should use. Options are:
+// desktop: whatever desktop OpenGL the user has installed (Linux and Mac
+// default).
+// egl: whatever EGL / GLES2 the user has installed (Windows default - actually
+// ANGLE).
+// osmesa: The OSMesa software renderer.
+const char kUseGL[] = "use-gl";
+
+} // namespace switches