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

Side by Side Diff: ui/gl/gl_switches.h

Issue 19925003: WIP - command line experiment Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/compositor/compositor_switches.h ('k') | ui/gl/gl_switches.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GL_GL_SWITCHES_H_ 5 #ifndef UI_GL_GL_SWITCHES_H_
6 #define UI_GL_GL_SWITCHES_H_ 6 #define UI_GL_GL_SWITCHES_H_
7 7
8 // Defines all the command-line switches used by ui/gl. 8 // Defines all the command-line switches used by ui/gl.
9 9
10 #include "base/basictypes.h"
10 #include "ui/gl/gl_export.h" 11 #include "ui/gl/gl_export.h"
11 12
12 namespace gfx { 13 namespace gfx {
13 14
14 // The GL implementation names that can be passed to --use-gl. 15 // The GL implementation names that can be passed to --use-gl.
15 GL_EXPORT extern const char kGLImplementationDesktopName[]; 16 GL_EXPORT extern const char kGLImplementationDesktopName[];
16 GL_EXPORT extern const char kGLImplementationOSMesaName[]; 17 GL_EXPORT extern const char kGLImplementationOSMesaName[];
17 GL_EXPORT extern const char kGLImplementationAppleName[]; 18 GL_EXPORT extern const char kGLImplementationAppleName[];
18 GL_EXPORT extern const char kGLImplementationEGLName[]; 19 GL_EXPORT extern const char kGLImplementationEGLName[];
19 GL_EXPORT extern const char kGLImplementationSwiftShaderName[]; 20 GL_EXPORT extern const char kGLImplementationSwiftShaderName[];
20 extern const char kGLImplementationMockName[]; 21 extern const char kGLImplementationMockName[];
21 22
22 } // namespace gfx 23 } // namespace gfx
23 24
25 #ifdef ENABLE_FAST_COMMAND_LINE_SWITCHES
26
27 namespace {
28 #include "ui/gl/gl_switches.cc"
29 }
30
31 #else
32
24 namespace switches { 33 namespace switches {
25 34
26 GL_EXPORT extern const char kEnableD3D11[]; 35 GL_EXPORT extern const char kEnableD3D11[];
27 GL_EXPORT extern const char kDisableD3D11[]; 36 GL_EXPORT extern const char kDisableD3D11[];
28 GL_EXPORT extern const char kDisableGpuVsync[]; 37 GL_EXPORT extern const char kDisableGpuVsync[];
29 GL_EXPORT extern const char kEnableGPUServiceLogging[]; 38 GL_EXPORT extern const char kEnableGPUServiceLogging[];
30 GL_EXPORT extern const char kEnableGPUClientLogging[]; 39 GL_EXPORT extern const char kEnableGPUClientLogging[];
31 GL_EXPORT extern const char kEnableGPUServiceTracing[]; 40 GL_EXPORT extern const char kEnableGPUServiceTracing[];
32 GL_EXPORT extern const char kGpuNoContextLost[]; 41 GL_EXPORT extern const char kGpuNoContextLost[];
33 GL_EXPORT extern const char kGpuSwapDelay[]; 42 GL_EXPORT extern const char kGpuSwapDelay[];
34 43
35 GL_EXPORT extern const char kSupportsDualGpus[]; 44 GL_EXPORT extern const char kSupportsDualGpus[];
36 GL_EXPORT extern const char kGpuSwitching[]; 45 GL_EXPORT extern const char kGpuSwitching[];
37 46
38 // The GPU switching names that can be passed to --gpu-switching. 47 // The GPU switching names that can be passed to --gpu-switching.
39 GL_EXPORT extern const char kGpuSwitchingOptionNameForceIntegrated[]; 48 GL_EXPORT extern const char kGpuSwitchingOptionNameForceIntegrated[];
40 GL_EXPORT extern const char kGpuSwitchingOptionNameForceDiscrete[]; 49 GL_EXPORT extern const char kGpuSwitchingOptionNameForceDiscrete[];
41 // The last one (automatic) is not used as commandline switch option. 50 // The last one (automatic) is not used as commandline switch option.
42 GL_EXPORT extern const char kGpuSwitchingOptionNameAutomatic[]; 51 GL_EXPORT extern const char kGpuSwitchingOptionNameAutomatic[];
43 52
44 GL_EXPORT extern const char kUseGL[]; 53 GL_EXPORT extern const char kUseGL[];
45 GL_EXPORT extern const char kSwiftShaderPath[]; 54 GL_EXPORT extern const char kSwiftShaderPath[];
46 GL_EXPORT extern const char kTestGLLib[]; 55 GL_EXPORT extern const char kTestGLLib[];
47 56
48 GL_EXPORT extern const char* kGLSwitchesCopiedFromGpuProcessHost[]; 57 GL_EXPORT extern const char* kGLSwitchesCopiedFromGpuProcessHost[];
49 GL_EXPORT extern const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches; 58 GL_EXPORT extern const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches;
50 59
51 } // namespace switches 60 } // namespace switches
52 61
62 #endif // ENABLE_FAST_COMMAND_LINE_SWITCHES
53 #endif // UI_GL_GL_SWITCHES_H_ 63 #endif // UI_GL_GL_SWITCHES_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor_switches.h ('k') | ui/gl/gl_switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698