Index: gpu/command_buffer/service/shader_translator_unittest.cc |
diff --git a/gpu/command_buffer/service/shader_translator_unittest.cc b/gpu/command_buffer/service/shader_translator_unittest.cc |
index 233b412024cd73cf9ffcd78c7f976f1c2235c434..0c19d605f77fe060739ddc1fab6d18aff744daab 100644 |
--- a/gpu/command_buffer/service/shader_translator_unittest.cc |
+++ b/gpu/command_buffer/service/shader_translator_unittest.cc |
@@ -2,9 +2,18 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include <GLES2/gl2.h> |
+ |
#include "gpu/command_buffer/service/shader_translator.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+// The ANGLE shader translator now uses native GLenums |
Zhenyao Mo
2014/07/07 20:35:13
Same here, please add a TODO
|
+#if (ANGLE_SH_VERSION >= 126) |
+#define SH_VERTEX_SHADER GL_VERTEX_SHADER |
+#define SH_FRAGMENT_SHADER GL_FRAGMENT_SHADER |
+#define SH_FLOAT_VEC4 GL_FLOAT_VEC4 |
+#endif |
+ |
namespace gpu { |
namespace gles2 { |