| 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"; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 const char kANGLEImplementationOpenGLESName[] = "gles"; | 22 const char kANGLEImplementationOpenGLESName[] = "gles"; |
| 23 | 23 |
| 24 } // namespace gfx | 24 } // namespace gfx |
| 25 | 25 |
| 26 namespace switches { | 26 namespace switches { |
| 27 | 27 |
| 28 // Disables use of D3D11. | 28 // Disables use of D3D11. |
| 29 const char kDisableD3D11[] = "disable-d3d11"; | 29 const char kDisableD3D11[] = "disable-d3d11"; |
| 30 | 30 |
| 31 // Stop the GPU from synchronizing on the vsync before presenting. | 31 // Stop the GPU from synchronizing on the vsync before presenting. |
| 32 // We can select from the options below: |
| 33 // beginframe : Next frame can start without any delay on cc::scheduler. |
| 34 // gpu : Disable gpu vsync. |
| 35 // default: Set both flags. |
| 32 const char kDisableGpuVsync[] = "disable-gpu-vsync"; | 36 const char kDisableGpuVsync[] = "disable-gpu-vsync"; |
| 33 | 37 |
| 34 // Turns on GPU logging (debug build only). | 38 // Turns on GPU logging (debug build only). |
| 35 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; | 39 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; |
| 36 | 40 |
| 37 // Turns on calling TRACE for every GL call. | 41 // Turns on calling TRACE for every GL call. |
| 38 const char kEnableGPUServiceTracing[] = "enable-gpu-service-tracing"; | 42 const char kEnableGPUServiceTracing[] = "enable-gpu-service-tracing"; |
| 39 | 43 |
| 40 // Select which ANGLE backend to use. Options are: | 44 // Select which ANGLE backend to use. Options are: |
| 41 // default: Attempts several ANGLE renderers until one successfully | 45 // default: Attempts several ANGLE renderers until one successfully |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 kGpuNoContextLost, | 102 kGpuNoContextLost, |
| 99 kDisableGLDrawingForTests, | 103 kDisableGLDrawingForTests, |
| 100 kOverrideUseGLWithOSMesaForTests, | 104 kOverrideUseGLWithOSMesaForTests, |
| 101 kUseANGLE, | 105 kUseANGLE, |
| 102 }; | 106 }; |
| 103 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 107 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
| 104 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 108 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
| 105 | 109 |
| 106 } // namespace switches | 110 } // namespace switches |
| 107 | 111 |
| OLD | NEW |