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 "base/macros.h" | 5 #include "base/macros.h" |
6 #include "ui/gl/gl_switches.h" | 6 #include "ui/gl/gl_switches.h" |
7 | 7 |
8 namespace gfx { | 8 namespace gfx { |
9 | 9 |
10 const char kGLImplementationDesktopName[] = "desktop"; | 10 const char kGLImplementationDesktopName[] = "desktop"; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // osmesa: The OSMesa software renderer. | 59 // osmesa: The OSMesa software renderer. |
60 const char kUseGL[] = "use-gl"; | 60 const char kUseGL[] = "use-gl"; |
61 | 61 |
62 const char kSwiftShaderPath[] = "swiftshader-path"; | 62 const char kSwiftShaderPath[] = "swiftshader-path"; |
63 | 63 |
64 // Inform Chrome that a GPU context will not be lost in power saving mode, | 64 // Inform Chrome that a GPU context will not be lost in power saving mode, |
65 // screen saving mode, etc. Note that this flag does not ensure that a GPU | 65 // screen saving mode, etc. Note that this flag does not ensure that a GPU |
66 // context will never be lost in any situations, say, a GPU reset. | 66 // context will never be lost in any situations, say, a GPU reset. |
67 const char kGpuNoContextLost[] = "gpu-no-context-lost"; | 67 const char kGpuNoContextLost[] = "gpu-no-context-lost"; |
68 | 68 |
| 69 // Turns on the use of DirectComposition to draw to the screen. |
| 70 const char kUseDirectComposition[] = "use-direct-composition"; |
| 71 |
69 // Indicates whether the dual GPU switching is supported or not. | 72 // Indicates whether the dual GPU switching is supported or not. |
70 const char kSupportsDualGpus[] = "supports-dual-gpus"; | 73 const char kSupportsDualGpus[] = "supports-dual-gpus"; |
71 | 74 |
72 // Flag used for Linux tests: for desktop GL bindings, try to load this GL | 75 // Flag used for Linux tests: for desktop GL bindings, try to load this GL |
73 // library first, but fall back to regular library if loading fails. | 76 // library first, but fall back to regular library if loading fails. |
74 const char kTestGLLib[] = "test-gl-lib"; | 77 const char kTestGLLib[] = "test-gl-lib"; |
75 | 78 |
76 // Use hardware gpu, if available, for tests. | 79 // Use hardware gpu, if available, for tests. |
77 const char kUseGpuInTests[] = "use-gpu-in-tests"; | 80 const char kUseGpuInTests[] = "use-gpu-in-tests"; |
78 | 81 |
(...skipping 17 matching lines...) Expand all Loading... |
96 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { | 99 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { |
97 kDisableGpuVsync, | 100 kDisableGpuVsync, |
98 kDisableD3D11, | 101 kDisableD3D11, |
99 kEnableGPUServiceLogging, | 102 kEnableGPUServiceLogging, |
100 kEnableGPUServiceTracing, | 103 kEnableGPUServiceTracing, |
101 kEnableUnsafeES3APIs, | 104 kEnableUnsafeES3APIs, |
102 kGpuNoContextLost, | 105 kGpuNoContextLost, |
103 kDisableGLDrawingForTests, | 106 kDisableGLDrawingForTests, |
104 kOverrideUseGLWithOSMesaForTests, | 107 kOverrideUseGLWithOSMesaForTests, |
105 kUseANGLE, | 108 kUseANGLE, |
| 109 kUseDirectComposition, |
106 }; | 110 }; |
107 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 111 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
108 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 112 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
109 | 113 |
110 } // namespace switches | 114 } // namespace switches |
111 | 115 |
OLD | NEW |