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"; |
11 const char kGLImplementationOSMesaName[] = "osmesa"; | 11 const char kGLImplementationOSMesaName[] = "osmesa"; |
12 const char kGLImplementationAppleName[] = "apple"; | 12 const char kGLImplementationAppleName[] = "apple"; |
13 const char kGLImplementationEGLName[] = "egl"; | 13 const char kGLImplementationEGLName[] = "egl"; |
14 const char kGLImplementationSwiftShaderName[] = "swiftshader"; | 14 const char kGLImplementationSwiftShaderName[] = "swiftshader"; |
15 const char kGLImplementationMockName[] = "mock"; | 15 const char kGLImplementationMockName[] = "mock"; |
16 | 16 |
17 } // namespace gfx | 17 } // namespace gfx |
18 | 18 |
19 namespace switches { | 19 namespace switches { |
20 | 20 |
| 21 // Enables use of D3D11 when available. |
| 22 const char kEnableD3D11[] = "enable-d3d11"; |
| 23 |
21 // Disables use of D3D11. | 24 // Disables use of D3D11. |
22 const char kDisableD3D11[] = "disable-d3d11"; | 25 const char kDisableD3D11[] = "disable-d3d11"; |
23 | 26 |
24 // Stop the GPU from synchronizing on the vsync before presenting. | 27 // Stop the GPU from synchronizing on the vsync before presenting. |
25 const char kDisableGpuVsync[] = "disable-gpu-vsync"; | 28 const char kDisableGpuVsync[] = "disable-gpu-vsync"; |
26 | 29 |
27 // Turns on GPU logging (debug build only). | 30 // Turns on GPU logging (debug build only). |
28 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; | 31 const char kEnableGPUServiceLogging[] = "enable-gpu-service-logging"; |
29 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging"; | 32 const char kEnableGPUClientLogging[] = "enable-gpu-client-logging"; |
30 | 33 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; | 72 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; |
70 | 73 |
71 // Use hardware gpu, if available, for tests. | 74 // Use hardware gpu, if available, for tests. |
72 const char kUseGpuInTests[] = "use-gpu-in-tests"; | 75 const char kUseGpuInTests[] = "use-gpu-in-tests"; |
73 | 76 |
74 // This is the list of switches passed from this file that are passed from the | 77 // This is the list of switches passed from this file that are passed from the |
75 // GpuProcessHost to the GPU Process. Add your switch to this list if you need | 78 // GpuProcessHost to the GPU Process. Add your switch to this list if you need |
76 // to read it in the GPU process, else don't add it. | 79 // to read it in the GPU process, else don't add it. |
77 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { | 80 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { |
78 kDisableGpuVsync, | 81 kDisableGpuVsync, |
| 82 kEnableD3D11, |
79 kDisableD3D11, | 83 kDisableD3D11, |
80 kEnableGPUServiceLogging, | 84 kEnableGPUServiceLogging, |
81 kEnableGPUServiceTracing, | 85 kEnableGPUServiceTracing, |
82 kGpuNoContextLost, | 86 kGpuNoContextLost, |
83 }; | 87 }; |
84 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 88 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
85 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 89 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
86 | 90 |
87 } // namespace switches | 91 } // namespace switches |
88 | 92 |
OLD | NEW |