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