| 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/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 10 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 } | 566 } |
| 567 } | 567 } |
| 568 }; | 568 }; |
| 569 | 569 |
| 570 class GLES3DecoderTest2 : public GLES2DecoderTest2 { | 570 class GLES3DecoderTest2 : public GLES2DecoderTest2 { |
| 571 public: | 571 public: |
| 572 GLES3DecoderTest2() { shader_language_version_ = 300; } | 572 GLES3DecoderTest2() { shader_language_version_ = 300; } |
| 573 protected: | 573 protected: |
| 574 void SetUp() override { | 574 void SetUp() override { |
| 575 base::CommandLine command_line(0, nullptr); | 575 base::CommandLine command_line(0, nullptr); |
| 576 command_line.AppendSwitch(switches::kEnableUnsafeES3APIs); | |
| 577 InitState init; | 576 InitState init; |
| 578 init.gl_version = "OpenGL ES 3.0"; | 577 init.gl_version = "OpenGL ES 3.0"; |
| 579 init.bind_generates_resource = true; | 578 init.bind_generates_resource = true; |
| 580 init.context_type = CONTEXT_TYPE_OPENGLES3; | 579 init.context_type = CONTEXT_TYPE_OPENGLES3; |
| 581 InitDecoderWithCommandLine(init, &command_line); | 580 InitDecoderWithCommandLine(init, &command_line); |
| 582 } | 581 } |
| 583 }; | 582 }; |
| 584 | 583 |
| 585 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderTest2, ::testing::Bool()); | 584 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderTest2, ::testing::Bool()); |
| 586 INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest2, ::testing::Bool()); | 585 INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest2, ::testing::Bool()); |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1063 TestAcceptedUniform(GL_FLOAT_MAT4x2, Program::kUniformMatrix4x2f, true); | 1062 TestAcceptedUniform(GL_FLOAT_MAT4x2, Program::kUniformMatrix4x2f, true); |
| 1064 } | 1063 } |
| 1065 | 1064 |
| 1066 TEST_P(GLES3DecoderTest2, AcceptsUniform_GL_FLOAT_MAT4x3) { | 1065 TEST_P(GLES3DecoderTest2, AcceptsUniform_GL_FLOAT_MAT4x3) { |
| 1067 TestAcceptedUniform(GL_FLOAT_MAT4x3, Program::kUniformMatrix4x3f, true); | 1066 TestAcceptedUniform(GL_FLOAT_MAT4x3, Program::kUniformMatrix4x3f, true); |
| 1068 } | 1067 } |
| 1069 | 1068 |
| 1070 } // namespace gles2 | 1069 } // namespace gles2 |
| 1071 } // namespace gpu | 1070 } // namespace gpu |
| 1072 | 1071 |
| OLD | NEW |