| 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 "ui/gl/gl_switches.h" | 5 #include "ui/gl/gl_switches.h" |
| 6 #include "base/basictypes.h" | 6 #include "base/basictypes.h" |
| 7 | 7 |
| 8 namespace gfx { | 8 namespace gfx { |
| 9 | 9 |
| 10 const char kGLImplementationDesktopName[] = "desktop"; | 10 const char kGLImplementationDesktopName[] = "desktop"; |
| 11 const char kGLImplementationOSMesaName[] = "osmesa"; | 11 const char kGLImplementationOSMesaName[] = "osmesa"; |
| 12 const char kGLImplementationAppleName[] = "apple"; | 12 const char kGLImplementationAppleName[] = "apple"; |
| 13 const char kGLImplementationEGLName[] = "egl"; | 13 const char kGLImplementationEGLName[] = "egl"; |
| 14 const char kGLImplementationSwiftShaderName[] = "swiftshader"; | 14 const char kGLImplementationSwiftShaderName[] = "swiftshader"; |
| 15 const char kGLImplementationMockName[] = "mock"; | 15 const char kGLImplementationMockName[] = "mock"; |
| 16 | 16 |
| 17 } // namespace gfx | 17 } // namespace gfx |
| 18 | 18 |
| 19 namespace switches { | 19 namespace switches { |
| 20 | 20 |
| 21 // Disables use of D3D11. | 21 // Disables use of D3D11. |
| 22 const char kDisableD3D11[] = "disable-d3d11"; | 22 const char kDisableD3D11[] = "disable-d3d11"; |
| 23 | 23 |
| 24 // Stop the GPU from synchronizing on the vsync before presenting. | 24 // Stop the GPU from synchronizing on the vsync before presenting. |
| 25 const char kDisableGpuVsync[] = "disable-gpu-vsync"; | 25 const char kDisableGpuVsync[] = "disable-gpu-vsync"; |
| 26 | 26 |
| 27 // Turns on GPU logging (debug build only). | 27 // Turns on GPU logging (debug build only). |
| 28 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; | 28 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; |
| 29 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging"; | |
| 30 | 29 |
| 31 // Turns on calling TRACE for every GL call. | 30 // Turns on calling TRACE for every GL call. |
| 32 const char kEnableGPUServiceTracing[] = "enable-gpu-service-tracing"; | 31 const char kEnableGPUServiceTracing[] = "enable-gpu-service-tracing"; |
| 33 | 32 |
| 34 // Select which implementation of GL the GPU process should use. Options are: | 33 // Select which implementation of GL the GPU process should use. Options are: |
| 35 // desktop: whatever desktop OpenGL the user has installed (Linux and Mac | 34 // desktop: whatever desktop OpenGL the user has installed (Linux and Mac |
| 36 // default). | 35 // default). |
| 37 // egl: whatever EGL / GLES2 the user has installed (Windows default - actually | 36 // egl: whatever EGL / GLES2 the user has installed (Windows default - actually |
| 38 // ANGLE). | 37 // ANGLE). |
| 39 // osmesa: The OSMesa software renderer. | 38 // osmesa: The OSMesa software renderer. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 kGpuNoContextLost, | 77 kGpuNoContextLost, |
| 79 kDisableGLDrawingForTests, | 78 kDisableGLDrawingForTests, |
| 80 kOverrideUseGLWithOSMesaForTests, | 79 kOverrideUseGLWithOSMesaForTests, |
| 81 kUseWarp | 80 kUseWarp |
| 82 }; | 81 }; |
| 83 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 82 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
| 84 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 83 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
| 85 | 84 |
| 86 } // namespace switches | 85 } // namespace switches |
| 87 | 86 |
| OLD | NEW |