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 #include "base/macros.h" | 5 #include "base/macros.h" |
6 #include "ui/gl/gl_switches.h" | 6 #include "ui/gl/gl_switches.h" |
7 | 7 |
8 namespace gl { | 8 namespace gl { |
9 | 9 |
10 const char kGLImplementationDesktopName[] = "desktop"; | 10 const char kGLImplementationDesktopName[] = "desktop"; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // the GL output will not be correct but tests will run faster. | 86 // the GL output will not be correct but tests will run faster. |
87 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; | 87 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; |
88 | 88 |
89 // Forces the use of OSMesa instead of hardware gpu. | 89 // Forces the use of OSMesa instead of hardware gpu. |
90 const char kOverrideUseGLWithOSMesaForTests[] = | 90 const char kOverrideUseGLWithOSMesaForTests[] = |
91 "override-use-gl-with-osmesa-for-tests"; | 91 "override-use-gl-with-osmesa-for-tests"; |
92 | 92 |
93 // Disables specified comma separated GL Extensions if found. | 93 // Disables specified comma separated GL Extensions if found. |
94 const char kDisableGLExtensions[] = "disable-gl-extensions"; | 94 const char kDisableGLExtensions[] = "disable-gl-extensions"; |
95 | 95 |
96 // Enables GL_INTEL_framebuffer_CMAA via shaders. Will be used if the platform | |
97 // does not support GL_INTEL_framebuffer_CMAA and the context is at least | |
98 // OpenGL ES 3.1 or OpenGL 3.0 with the required extensions. | |
99 const char kEnableCMAAShaders[] = "enable-cmaa-shaders"; | |
100 | |
101 // This is the list of switches passed from this file that are passed from the | 96 // This is the list of switches passed from this file that are passed from the |
102 // GpuProcessHost to the GPU Process. Add your switch to this list if you need | 97 // GpuProcessHost to the GPU Process. Add your switch to this list if you need |
103 // to read it in the GPU process, else don't add it. | 98 // to read it in the GPU process, else don't add it. |
104 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { | 99 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { |
105 kDisableGpuVsync, | 100 kDisableGpuVsync, |
106 kDisableD3D11, | 101 kDisableD3D11, |
107 kEnableGPUServiceLogging, | 102 kEnableGPUServiceLogging, |
108 kEnableGPUServiceTracing, | 103 kEnableGPUServiceTracing, |
109 kEnableUnsafeES3APIs, | 104 kEnableUnsafeES3APIs, |
110 kGpuNoContextLost, | 105 kGpuNoContextLost, |
111 kDisableGLDrawingForTests, | 106 kDisableGLDrawingForTests, |
112 kOverrideUseGLWithOSMesaForTests, | 107 kOverrideUseGLWithOSMesaForTests, |
113 kUseANGLE, | 108 kUseANGLE, |
114 kDisableDirectComposition, | 109 kDisableDirectComposition, |
115 kEnableCMAAShaders, | |
116 }; | 110 }; |
117 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 111 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
118 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 112 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
119 | 113 |
120 } // namespace switches | 114 } // namespace switches |
121 | 115 |
OLD | NEW |