| 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 | 6 |
| 7 namespace gfx { | 7 namespace gfx { |
| 8 | 8 |
| 9 const char kGLImplementationDesktopName[] = "desktop"; | 9 const char kGLImplementationDesktopName[] = "desktop"; |
| 10 const char kGLImplementationOSMesaName[] = "osmesa"; | 10 const char kGLImplementationOSMesaName[] = "osmesa"; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Inform Chrome that a GPU context will not be lost in power saving mode, | 37 // Inform Chrome that a GPU context will not be lost in power saving mode, |
| 38 // screen saving mode, etc. Note that this flag does not ensure that a GPU | 38 // screen saving mode, etc. Note that this flag does not ensure that a GPU |
| 39 // context will never be lost in any situations, say, a GPU reset. | 39 // context will never be lost in any situations, say, a GPU reset. |
| 40 const char kGpuNoContextLost[] = "gpu-no-context-lost"; | 40 const char kGpuNoContextLost[] = "gpu-no-context-lost"; |
| 41 | 41 |
| 42 // Add a delay in milliseconds to the gpu swap buffer completion signal. | 42 // Add a delay in milliseconds to the gpu swap buffer completion signal. |
| 43 // Simulates a slow GPU. | 43 // Simulates a slow GPU. |
| 44 const char kGpuSwapDelay[] = "gpu-swap-delay"; | 44 const char kGpuSwapDelay[] = "gpu-swap-delay"; |
| 45 | 45 |
| 46 // Overwrite the default GPU automatic switching behavior to force on | |
| 47 // integrated GPU or discrete GPU. | |
| 48 const char kGpuSwitching[] = "gpu-switching"; | |
| 49 | |
| 50 const char kGpuSwitchingOptionNameForceIntegrated[] = "force_integrated"; | |
| 51 const char kGpuSwitchingOptionNameForceDiscrete[] = "force_discrete"; | |
| 52 const char kGpuSwitchingOptionNameAutomatic[] = "automatic"; | |
| 53 | |
| 54 // Flag used for Linux tests: for desktop GL bindings, try to load this GL | 46 // Flag used for Linux tests: for desktop GL bindings, try to load this GL |
| 55 // library first, but fall back to regular library if loading fails. | 47 // library first, but fall back to regular library if loading fails. |
| 56 const char kTestGLLib[] = "test-gl-lib"; | 48 const char kTestGLLib[] = "test-gl-lib"; |
| 57 | 49 |
| 58 } // namespace switches | 50 } // namespace switches |
| 59 | |
| OLD | NEW |