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 // Enable OpenGL ES 3 APIs without proper service side validation. |
| 62 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis"; |
| 63 |
61 // Disables GL drawing operations which produce pixel output. With this | 64 // Disables GL drawing operations which produce pixel output. With this |
62 // the GL output will not be correct but tests will run faster. | 65 // the GL output will not be correct but tests will run faster. |
63 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; | 66 const char kDisableGLDrawingForTests[] = "disable-gl-drawing-for-tests"; |
64 | 67 |
65 // Forces the use of OSMesa instead of hardware gpu. | 68 // Forces the use of OSMesa instead of hardware gpu. |
66 const char kOverrideUseGLWithOSMesaForTests[] = | 69 const char kOverrideUseGLWithOSMesaForTests[] = |
67 "override-use-gl-with-osmesa-for-tests"; | 70 "override-use-gl-with-osmesa-for-tests"; |
68 | 71 |
69 // This is the list of switches passed from this file that are passed from the | 72 // This is the list of switches passed from this file that are passed from the |
70 // GpuProcessHost to the GPU Process. Add your switch to this list if you need | 73 // GpuProcessHost to the GPU Process. Add your switch to this list if you need |
71 // to read it in the GPU process, else don't add it. | 74 // to read it in the GPU process, else don't add it. |
72 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { | 75 const char* kGLSwitchesCopiedFromGpuProcessHost[] = { |
73 kDisableGpuVsync, | 76 kDisableGpuVsync, |
74 kDisableD3D11, | 77 kDisableD3D11, |
75 kEnableGPUServiceLogging, | 78 kEnableGPUServiceLogging, |
76 kEnableGPUServiceTracing, | 79 kEnableGPUServiceTracing, |
| 80 kEnableUnsafeES3APIs, |
77 kGpuNoContextLost, | 81 kGpuNoContextLost, |
78 kDisableGLDrawingForTests, | 82 kDisableGLDrawingForTests, |
79 kOverrideUseGLWithOSMesaForTests, | 83 kOverrideUseGLWithOSMesaForTests, |
80 kUseWarp, | 84 kUseWarp, |
81 }; | 85 }; |
82 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = | 86 const int kGLSwitchesCopiedFromGpuProcessHostNumSwitches = |
83 arraysize(kGLSwitchesCopiedFromGpuProcessHost); | 87 arraysize(kGLSwitchesCopiedFromGpuProcessHost); |
84 | 88 |
85 } // namespace switches | 89 } // namespace switches |
86 | 90 |
OLD | NEW |