| 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 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1201 cmd->Init(1, &client_transformfeedback_id_); | 1201 cmd->Init(1, &client_transformfeedback_id_); |
| 1202 decoder_->set_unsafe_es3_apis_enabled(true); | 1202 decoder_->set_unsafe_es3_apis_enabled(true); |
| 1203 EXPECT_EQ(error::kInvalidArguments, | 1203 EXPECT_EQ(error::kInvalidArguments, |
| 1204 ExecuteImmediateCmd(*cmd, sizeof(&client_transformfeedback_id_))); | 1204 ExecuteImmediateCmd(*cmd, sizeof(&client_transformfeedback_id_))); |
| 1205 decoder_->set_unsafe_es3_apis_enabled(false); | 1205 decoder_->set_unsafe_es3_apis_enabled(false); |
| 1206 } | 1206 } |
| 1207 // TODO(gman): GetActiveAttrib | 1207 // TODO(gman): GetActiveAttrib |
| 1208 | 1208 |
| 1209 // TODO(gman): GetActiveUniform | 1209 // TODO(gman): GetActiveUniform |
| 1210 | 1210 |
| 1211 // TODO(gman): GetActiveUniformBlockName |
| 1212 |
| 1211 // TODO(gman): GetAttachedShaders | 1213 // TODO(gman): GetAttachedShaders |
| 1212 | 1214 |
| 1213 // TODO(gman): GetAttribLocation | 1215 // TODO(gman): GetAttribLocation |
| 1214 | 1216 |
| 1215 TEST_P(GLES2DecoderTest1, GetBooleanvValidArgs) { | 1217 TEST_P(GLES2DecoderTest1, GetBooleanvValidArgs) { |
| 1216 EXPECT_CALL(*gl_, GetError()) | 1218 EXPECT_CALL(*gl_, GetError()) |
| 1217 .WillOnce(Return(GL_NO_ERROR)) | 1219 .WillOnce(Return(GL_NO_ERROR)) |
| 1218 .WillOnce(Return(GL_NO_ERROR)) | 1220 .WillOnce(Return(GL_NO_ERROR)) |
| 1219 .RetiresOnSaturation(); | 1221 .RetiresOnSaturation(); |
| 1220 SpecializedSetup<cmds::GetBooleanv, 0>(true); | 1222 SpecializedSetup<cmds::GetBooleanv, 0>(true); |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1946 SpecializedSetup<cmds::GetTexParameteriv, 0>(false); | 1948 SpecializedSetup<cmds::GetTexParameteriv, 0>(false); |
| 1947 cmds::GetTexParameteriv::Result* result = | 1949 cmds::GetTexParameteriv::Result* result = |
| 1948 static_cast<cmds::GetTexParameteriv::Result*>(shared_memory_address_); | 1950 static_cast<cmds::GetTexParameteriv::Result*>(shared_memory_address_); |
| 1949 result->size = 0; | 1951 result->size = 0; |
| 1950 cmds::GetTexParameteriv cmd; | 1952 cmds::GetTexParameteriv cmd; |
| 1951 cmd.Init(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, shared_memory_id_, | 1953 cmd.Init(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, shared_memory_id_, |
| 1952 kInvalidSharedMemoryOffset); | 1954 kInvalidSharedMemoryOffset); |
| 1953 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); | 1955 EXPECT_EQ(error::kOutOfBounds, ExecuteCmd(cmd)); |
| 1954 EXPECT_EQ(0u, result->size); | 1956 EXPECT_EQ(0u, result->size); |
| 1955 } | 1957 } |
| 1956 // TODO(gman): GetUniformfv | |
| 1957 | |
| 1958 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ | 1958 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_1_AUTOGEN_H_ |
| OLD | NEW |