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 "gpu/command_buffer/service/gpu_switches.h" | 5 #include "gpu/command_buffer/service/gpu_switches.h" |
6 #include "base/basictypes.h" | 6 #include "base/basictypes.h" |
7 | 7 |
8 namespace switches { | 8 namespace switches { |
9 | 9 |
10 // Always return success when compiling a shader. Linking will still fail. | 10 // Always return success when compiling a shader. Linking will still fail. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 // Enable WebGL subscribe uniform extension. | 59 // Enable WebGL subscribe uniform extension. |
60 const char kEnableSubscribeUniformExtension[] = | 60 const char kEnableSubscribeUniformExtension[] = |
61 "enable-subscribe-uniform-extension"; | 61 "enable-subscribe-uniform-extension"; |
62 | 62 |
63 // Simulates shared textures when share groups are not available. Not available | 63 // Simulates shared textures when share groups are not available. Not available |
64 // everywhere. | 64 // everywhere. |
65 const char kEnableThreadedTextureMailboxes[] = | 65 const char kEnableThreadedTextureMailboxes[] = |
66 "enable-threaded-texture-mailboxes"; | 66 "enable-threaded-texture-mailboxes"; |
67 | 67 |
| 68 const char kEnableAsyncPixelWithThreadedTextureMailboxes[] = |
| 69 "enable-async-pixel-with-threaded-texture-mailboxes"; |
| 70 |
68 // Enable OpenGL ES 3 APIs without proper service side validation. | 71 // Enable OpenGL ES 3 APIs without proper service side validation. |
69 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis"; | 72 const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis"; |
70 | 73 |
71 // Include ANGLE's intermediate representation (AST) output in shader | 74 // Include ANGLE's intermediate representation (AST) output in shader |
72 // compilation info logs. | 75 // compilation info logs. |
73 const char kGLShaderIntermOutput[] = "gl-shader-interm-output"; | 76 const char kGLShaderIntermOutput[] = "gl-shader-interm-output"; |
74 | 77 |
75 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to | 78 // Emulate ESSL lowp and mediump float precisions by mutating the shaders to |
76 // round intermediate values in ANGLE. | 79 // round intermediate values in ANGLE. |
77 const char kEmulateShaderPrecision[] = "emulate-shader-precision"; | 80 const char kEmulateShaderPrecision[] = "emulate-shader-precision"; |
(...skipping 16 matching lines...) Expand all Loading... |
94 kEnableShareGroupAsyncTextureUpload, | 97 kEnableShareGroupAsyncTextureUpload, |
95 kEnableUnsafeES3APIs, | 98 kEnableUnsafeES3APIs, |
96 kEnableSubscribeUniformExtension, | 99 kEnableSubscribeUniformExtension, |
97 kGLShaderIntermOutput, | 100 kGLShaderIntermOutput, |
98 kEmulateShaderPrecision, | 101 kEmulateShaderPrecision, |
99 }; | 102 }; |
100 | 103 |
101 const int kNumGpuSwitches = arraysize(kGpuSwitches); | 104 const int kNumGpuSwitches = arraysize(kGpuSwitches); |
102 | 105 |
103 } // namespace switches | 106 } // namespace switches |
OLD | NEW |