1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_GL_GL_SWITCHES_H_
6 #define UI_GL_GL_SWITCHES_H_
8 // Defines all the command-line switches used by ui/gl.
10 #include "ui/gl/gl_export.h"
14 // The GL implementation names that can be passed to --use-gl.
15 GL_EXPORT
extern const char kGLImplementationDesktopName
[];
16 GL_EXPORT
extern const char kGLImplementationOSMesaName
[];
17 GL_EXPORT
extern const char kGLImplementationAppleName
[];
18 GL_EXPORT
extern const char kGLImplementationEGLName
[];
19 GL_EXPORT
extern const char kGLImplementationSwiftShaderName
[];
20 extern const char kGLImplementationMockName
[];
26 GL_EXPORT
extern const char kEnableD3D11
[];
27 GL_EXPORT
extern const char kDisableD3D11
[];
28 GL_EXPORT
extern const char kDisableGpuVsync
[];
29 GL_EXPORT
extern const char kEnableGPUServiceLogging
[];
30 GL_EXPORT
extern const char kEnableGPUClientLogging
[];
31 GL_EXPORT
extern const char kEnableGPUServiceTracing
[];
32 GL_EXPORT
extern const char kGpuNoContextLost
[];
33 GL_EXPORT
extern const char kGpuSwapDelay
[];
35 GL_EXPORT
extern const char kSupportsDualGpus
[];
36 GL_EXPORT
extern const char kGpuSwitching
[];
38 // The GPU switching names that can be passed to --gpu-switching.
39 GL_EXPORT
extern const char kGpuSwitchingOptionNameForceIntegrated
[];
40 GL_EXPORT
extern const char kGpuSwitchingOptionNameForceDiscrete
[];
41 // The last one (automatic) is not used as commandline switch option.
42 GL_EXPORT
extern const char kGpuSwitchingOptionNameAutomatic
[];
44 GL_EXPORT
extern const char kUseGL
[];
45 GL_EXPORT
extern const char kSwiftShaderPath
[];
46 GL_EXPORT
extern const char kTestGLLib
[];
47 GL_EXPORT
extern const char kDisableGLDrawingForTests
[];
49 GL_EXPORT
extern const char* kGLSwitchesCopiedFromGpuProcessHost
[];
50 GL_EXPORT
extern const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches
;
52 } // namespace switches
54 #endif // UI_GL_GL_SWITCHES_H_