OLD | NEW |
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/feature_list.h" |
10 #include "ui/gl/gl_export.h" | 11 #include "ui/gl/gl_export.h" |
11 | 12 |
12 namespace gl { | 13 namespace gl { |
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 kGLImplementationANGLEName[]; | 20 GL_EXPORT extern const char kGLImplementationANGLEName[]; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 58 |
58 // These flags are used by the test harness code, not passed in by users. | 59 // These flags are used by the test harness code, not passed in by users. |
59 GL_EXPORT extern const char kDisableGLDrawingForTests[]; | 60 GL_EXPORT extern const char kDisableGLDrawingForTests[]; |
60 GL_EXPORT extern const char kOverrideUseSoftwareGLForTests[]; | 61 GL_EXPORT extern const char kOverrideUseSoftwareGLForTests[]; |
61 | 62 |
62 GL_EXPORT extern const char* kGLSwitchesCopiedFromGpuProcessHost[]; | 63 GL_EXPORT extern const char* kGLSwitchesCopiedFromGpuProcessHost[]; |
63 GL_EXPORT extern const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches; | 64 GL_EXPORT extern const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches; |
64 | 65 |
65 } // namespace switches | 66 } // namespace switches |
66 | 67 |
| 68 namespace features { |
| 69 |
| 70 #if defined(OS_WIN) |
| 71 GL_EXPORT extern const base::Feature kD3DVsync; |
| 72 #endif // defined(OS_WIN) |
| 73 |
| 74 } // namespace features |
| 75 |
67 #endif // UI_GL_GL_SWITCHES_H_ | 76 #endif // UI_GL_GL_SWITCHES_H_ |
OLD | NEW |