Index: gpu/command_buffer/service/gpu_switches.cc |
diff --git a/gpu/command_buffer/service/gpu_switches.cc b/gpu/command_buffer/service/gpu_switches.cc |
index 7298140cfbcb152d23533abcdc5ac8c6e6d8b480..a2d43e9c4dfd7f18772d7dbe47f2dcfb9266a4dd 100644 |
--- a/gpu/command_buffer/service/gpu_switches.cc |
+++ b/gpu/command_buffer/service/gpu_switches.cc |
@@ -68,6 +68,14 @@ const char kEnableThreadedTextureMailboxes[] = |
// Enable OpenGL ES 3 APIs without proper service side validation. |
const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis"; |
+// Include ANGLE's intermediate representation (AST) output in shader |
+// compilation info logs. |
+const char kGLShaderIntermOutput[] = "gl-shader-interm-output"; |
+ |
+// Emulate ESSL lowp and mediump float precisions by mutating the shaders to |
+// round intermediate values in ANGLE. |
+const char kEmulateShaderPrecision[] = "emulate-shader-precision"; |
+ |
const char* kGpuSwitches[] = { |
kCompileShaderAlwaysSucceeds, |
kDisableGLErrorLimit, |
@@ -86,6 +94,8 @@ const char* kGpuSwitches[] = { |
kEnableShareGroupAsyncTextureUpload, |
kEnableUnsafeES3APIs, |
kEnableSubscribeUniformExtension, |
+ kGLShaderIntermOutput, |
+ kEmulateShaderPrecision, |
}; |
const int kNumGpuSwitches = arraysize(kGpuSwitches); |