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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // Flag used for Linux tests: for desktop GL bindings, try to load this GL | 51 // 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. | 52 // library first, but fall back to regular library if loading fails. |
53 const char kTestGLLib[] = "test-gl-lib"; | 53 const char kTestGLLib[] = "test-gl-lib"; |
54 | 54 |
55 // Use hardware gpu, if available, for tests. | 55 // Use hardware gpu, if available, for tests. |
56 const char kUseGpuInTests[] = "use-gpu-in-tests"; | 56 const char kUseGpuInTests[] = "use-gpu-in-tests"; |
57 | 57 |
58 // On Windows only: use the WARP software rasterizer in the GPU process. | 58 // On Windows only: use the WARP software rasterizer in the GPU process. |
59 const char kUseWarp[] = "use-warp"; | 59 const char kUseWarp[] = "use-warp"; |
60 | 60 |
61 // Include ANGLE's intermediate representation (AST) output in shader | |
62 // compilation info logs. | |
63 const char kGLShaderIntermOutput[] = "gl-shader-interm-output"; | |
64 | |
65 // Disables GL drawing operations which produce pixel output. With this | 61 // Disables GL drawing operations which produce pixel output. With this |
66 // the GL output will not be correct but tests will run faster. | 62 // the GL output will not be correct but tests will run faster. |
67 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; | 63 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; |
68 | 64 |
69 // Forces the use of OSMesa instead of hardware gpu. | 65 // Forces the use of OSMesa instead of hardware gpu. |
70 const char kOverrideUseGLWithOSMesaForTests[] = | 66 const char kOverrideUseGLWithOSMesaForTests[] = |
71 "override-use-gl-with-osmesa-for-tests"; | 67 "override-use-gl-with-osmesa-for-tests"; |
72 | 68 |
73 // This is the list of switches passed from this file that are passed from the | 69 // This is the list of switches passed from this file that are passed from the |
74 // GpuProcessHost to the GPU Process. Add your switch to this list if you need | 70 // GpuProcessHost to the GPU Process. Add your switch to this list if you need |
75 // to read it in the GPU process, else don't add it. | 71 // to read it in the GPU process, else don't add it. |
76 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { | 72 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { |
77 kDisableGpuVsync, | 73 kDisableGpuVsync, |
78 kDisableD3D11, | 74 kDisableD3D11, |
79 kEnableGPUServiceLogging, | 75 kEnableGPUServiceLogging, |
80 kEnableGPUServiceTracing, | 76 kEnableGPUServiceTracing, |
81 kGpuNoContextLost, | 77 kGpuNoContextLost, |
82 kDisableGLDrawingForTests, | 78 kDisableGLDrawingForTests, |
83 kOverrideUseGLWithOSMesaForTests, | 79 kOverrideUseGLWithOSMesaForTests, |
84 kUseWarp, | 80 kUseWarp, |
85 kGLShaderIntermOutput | |
86 }; | 81 }; |
87 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 82 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
88 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 83 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
89 | 84 |
90 } // namespace switches | 85 } // namespace switches |
91 | 86 |
OLD | NEW |