OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 SpecializedSetup<cmds::DisableVertexAttribArray, 0>(true); | 844 SpecializedSetup<cmds::DisableVertexAttribArray, 0>(true); |
845 cmds::DisableVertexAttribArray cmd; | 845 cmds::DisableVertexAttribArray cmd; |
846 cmd.Init(1); | 846 cmd.Init(1); |
847 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 847 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
848 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 848 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
849 } | 849 } |
850 // TODO(gman): DrawArrays | 850 // TODO(gman): DrawArrays |
851 | 851 |
852 // TODO(gman): DrawElements | 852 // TODO(gman): DrawElements |
853 | 853 |
| 854 // TODO(gman): DrawRangeElements |
| 855 |
854 TEST_P(GLES2DecoderTest1, EnableValidArgs) { | 856 TEST_P(GLES2DecoderTest1, EnableValidArgs) { |
855 SetupExpectationsForEnableDisable(GL_BLEND, true); | 857 SetupExpectationsForEnableDisable(GL_BLEND, true); |
856 SpecializedSetup<cmds::Enable, 0>(true); | 858 SpecializedSetup<cmds::Enable, 0>(true); |
857 cmds::Enable cmd; | 859 cmds::Enable cmd; |
858 cmd.Init(GL_BLEND); | 860 cmd.Init(GL_BLEND); |
859 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 861 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
860 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 862 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
861 } | 863 } |
862 | 864 |
863 TEST_P(GLES2DecoderTest1, EnableInvalidArgs0_0) { | 865 TEST_P(GLES2DecoderTest1, EnableInvalidArgs0_0) { |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1803 result->size = 0; | 1805 result->size = 0; |
1804 cmds::GetShaderiv cmd; | 1806 cmds::GetShaderiv cmd; |
1805 cmd.Init(client_shader_id_, GL_SHADER_TYPE, shared_memory_id_, | 1807 cmd.Init(client_shader_id_, GL_SHADER_TYPE, shared_memory_id_, |
1806 kInvalidSharedMemoryOffset); | 1808 kInvalidSharedMemoryOffset); |
1807 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); | 1809 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); |
1808 EXPECT_EQ(0u, result->size); | 1810 EXPECT_EQ(0u, result->size); |
1809 } | 1811 } |
1810 // TODO(gman): GetShaderInfoLog | 1812 // TODO(gman): GetShaderInfoLog |
1811 // TODO(gman): GetShaderPrecisionFormat | 1813 // TODO(gman): GetShaderPrecisionFormat |
1812 | 1814 |
1813 // TODO(gman): GetShaderSource | |
1814 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ | 1815 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ |
OLD | NEW |