summaryrefslogtreecommitdiffstats
path: root/ui/gl/gl_switches.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gl/gl_switches.h')
-rw-r--r--ui/gl/gl_switches.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/ui/gl/gl_switches.h b/ui/gl/gl_switches.h
new file mode 100644
index 0000000..ffda704
--- /dev/null
+++ b/ui/gl/gl_switches.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2012 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.
+
+#ifndef UI_GL_GL_SWITCHES_H_
+#define UI_GL_GL_SWITCHES_H_
+#pragma once
+
+// Defines all the command-line switches used by ui/gl.
+
+#include "ui/gl/gl_export.h"
+
+namespace gfx {
+
+// The GL implementation names that can be passed to --use-gl.
+GL_EXPORT extern const char kGLImplementationDesktopName[];
+GL_EXPORT extern const char kGLImplementationOSMesaName[];
+GL_EXPORT extern const char kGLImplementationAppleName[];
+GL_EXPORT extern const char kGLImplementationEGLName[];
+GL_EXPORT extern const char kGLImplementationSwiftShaderName[];
+extern const char kGLImplementationMockName[];
+
+} // namespace gfx
+
+namespace switches {
+
+GL_EXPORT extern const char kDisableGpuSwitching[];
+GL_EXPORT extern const char kDisableGpuVsync[];
+GL_EXPORT extern const char kEnableGPUServiceLogging[];
+GL_EXPORT extern const char kEnableGPUClientLogging[];
+GL_EXPORT extern const char kGpuNoContextLost[];
+GL_EXPORT extern const char kGpuSwapDelay[];
+GL_EXPORT extern const char kUseGL[];
+GL_EXPORT extern const char kSwiftShaderPath[];
+GL_EXPORT extern const char kTestGLLib[];
+
+} // namespace switches
+
+#endif // UI_GL_GL_SWITCHES_H_