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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 const char kSwiftShaderPath[] = "swiftshader-path"; | 42 const char kSwiftShaderPath[] = "swiftshader-path"; |
43 | 43 |
44 // Inform Chrome that a GPU context will not be lost in power saving mode, | 44 // Inform Chrome that a GPU context will not be lost in power saving mode, |
45 // screen saving mode, etc. Note that this flag does not ensure that a GPU | 45 // screen saving mode, etc. Note that this flag does not ensure that a GPU |
46 // context will never be lost in any situations, say, a GPU reset. | 46 // context will never be lost in any situations, say, a GPU reset. |
47 const char kGpuNoContextLost[] = "gpu-no-context-lost"; | 47 const char kGpuNoContextLost[] = "gpu-no-context-lost"; |
48 | 48 |
49 // Indicates whether the dual GPU switching is supported or not. | 49 // Indicates whether the dual GPU switching is supported or not. |
50 const char kSupportsDualGpus[] = "supports-dual-gpus"; | 50 const char kSupportsDualGpus[] = "supports-dual-gpus"; |
51 | 51 |
52 // Overwrite the default GPU automatic switching behavior to force on | |
53 // integrated GPU or discrete GPU. | |
54 const char kGpuSwitching[] = "gpu-switching"; | |
55 | |
56 const char kGpuSwitchingOptionNameForceIntegrated[] = "force_integrated"; | |
57 const char kGpuSwitchingOptionNameForceDiscrete[] = "force_discrete"; | |
58 | |
59 // Flag used for Linux tests: for desktop GL bindings, try to load this GL | 52 // Flag used for Linux tests: for desktop GL bindings, try to load this GL |
60 // library first, but fall back to regular library if loading fails. | 53 // library first, but fall back to regular library if loading fails. |
61 const char kTestGLLib[] = "test-gl-lib"; | 54 const char kTestGLLib[] = "test-gl-lib"; |
62 | 55 |
63 // Use hardware gpu, if available, for tests. | 56 // Use hardware gpu, if available, for tests. |
64 const char kUseGpuInTests[] = "use-gpu-in-tests"; | 57 const char kUseGpuInTests[] = "use-gpu-in-tests"; |
65 | 58 |
66 // Disables GL drawing operations which produce pixel output. With this | 59 // Disables GL drawing operations which produce pixel output. With this |
67 // the GL output will not be correct but tests will run faster. | 60 // the GL output will not be correct but tests will run faster. |
68 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; | 61 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; |
(...skipping 12 matching lines...) Expand all Loading... |
81 kEnableGPUServiceTracing, | 74 kEnableGPUServiceTracing, |
82 kGpuNoContextLost, | 75 kGpuNoContextLost, |
83 kDisableGLDrawingForTests, | 76 kDisableGLDrawingForTests, |
84 kOverrideUseGLWithOSMesaForTests, | 77 kOverrideUseGLWithOSMesaForTests, |
85 }; | 78 }; |
86 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 79 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
87 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 80 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
88 | 81 |
89 } // namespace switches | 82 } // namespace switches |
90 | 83 |
OLD | NEW |