Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8611)

Unified Diff: gpu/command_buffer/service/shader_translator_unittest.cc

Issue 373833002: Fix gpu_unittests for new Shader Translator header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODO comments Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/program_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fe6eef100241252d41c9cf7c73be151324fb8dc6 100644
--- a/gpu/command_buffer/service/shader_translator_unittest.cc
+++ b/gpu/command_buffer/service/shader_translator_unittest.cc
@@ -2,9 +2,20 @@
// 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
+// TODO(jmadill): delete these defines when the ANGLE
+// roll reliably passes translator version 126
+#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 {
« no previous file with comments | « gpu/command_buffer/service/program_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698