Chromium Code Reviews| 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 <GLES2/gl2.h> | |
| 6 | |
| 5 #include "gpu/command_buffer/service/shader_translator.h" | 7 #include "gpu/command_buffer/service/shader_translator.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 9 |
| 10 // The ANGLE shader translator now uses native GLenums | |
|
Zhenyao Mo
2014/07/07 20:35:13
Same here, please add a TODO
| |
| 11 #if (ANGLE_SH_VERSION >= 126) | |
| 12 #define SH_VERTEX_SHADER GL_VERTEX_SHADER | |
| 13 #define SH_FRAGMENT_SHADER GL_FRAGMENT_SHADER | |
| 14 #define SH_FLOAT_VEC4 GL_FLOAT_VEC4 | |
| 15 #endif | |
| 16 | |
| 8 namespace gpu { | 17 namespace gpu { |
| 9 namespace gles2 { | 18 namespace gles2 { |
| 10 | 19 |
| 11 class ShaderTranslatorTest : public testing::Test { | 20 class ShaderTranslatorTest : public testing::Test { |
| 12 public: | 21 public: |
| 13 ShaderTranslatorTest() { | 22 ShaderTranslatorTest() { |
| 14 } | 23 } |
| 15 | 24 |
| 16 virtual ~ShaderTranslatorTest() { | 25 virtual ~ShaderTranslatorTest() { |
| 17 } | 26 } |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 255 | 264 |
| 256 EXPECT_EQ(options_1, options_2); | 265 EXPECT_EQ(options_1, options_2); |
| 257 EXPECT_NE(options_1, options_3); | 266 EXPECT_NE(options_1, options_3); |
| 258 EXPECT_NE(options_1, options_4); | 267 EXPECT_NE(options_1, options_4); |
| 259 EXPECT_NE(options_3, options_4); | 268 EXPECT_NE(options_3, options_4); |
| 260 } | 269 } |
| 261 | 270 |
| 262 } // namespace gles2 | 271 } // namespace gles2 |
| 263 } // namespace gpu | 272 } // namespace gpu |
| 264 | 273 |
| OLD | NEW |