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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 *GetImmediateAs<cmds::TexParameterivImmediate>(); | 316 *GetImmediateAs<cmds::TexParameterivImmediate>(); |
317 EXPECT_CALL(*gl_, TexParameteri(_, _, _)).Times(0); | 317 EXPECT_CALL(*gl_, TexParameteri(_, _, _)).Times(0); |
318 SpecializedSetup<cmds::TexParameterivImmediate, 0>(false); | 318 SpecializedSetup<cmds::TexParameterivImmediate, 0>(false); |
319 GLint temp[1] = { | 319 GLint temp[1] = { |
320 GL_NEAREST, | 320 GL_NEAREST, |
321 }; | 321 }; |
322 cmd.Init(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, &temp[0]); | 322 cmd.Init(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, &temp[0]); |
323 EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp))); | 323 EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp))); |
324 EXPECT_EQ(GL_INVALID_ENUM, GetGLError()); | 324 EXPECT_EQ(GL_INVALID_ENUM, GetGLError()); |
325 } | 325 } |
| 326 |
| 327 TEST_P(GLES2DecoderTest2, TexStorage3DValidArgs) { |
| 328 EXPECT_CALL(*gl_, TexStorage3D(GL_TEXTURE_3D, 2, GL_RGB565, 4, 5, 6)); |
| 329 SpecializedSetup<cmds::TexStorage3D, 0>(true); |
| 330 cmds::TexStorage3D cmd; |
| 331 cmd.Init(GL_TEXTURE_3D, 2, GL_RGB565, 4, 5, 6); |
| 332 decoder_->set_unsafe_es3_apis_enabled(true); |
| 333 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 334 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 335 decoder_->set_unsafe_es3_apis_enabled(false); |
| 336 EXPECT_EQ(error::kUnknownCommand, ExecuteCmd(cmd)); |
| 337 } |
326 // TODO(gman): TexSubImage2D | 338 // TODO(gman): TexSubImage2D |
327 | 339 |
328 TEST_P(GLES2DecoderTest2, Uniform1fValidArgs) { | 340 TEST_P(GLES2DecoderTest2, Uniform1fValidArgs) { |
329 EXPECT_CALL(*gl_, Uniform1fv(1, 1, _)); | 341 EXPECT_CALL(*gl_, Uniform1fv(1, 1, _)); |
330 SpecializedSetup<cmds::Uniform1f, 0>(true); | 342 SpecializedSetup<cmds::Uniform1f, 0>(true); |
331 cmds::Uniform1f cmd; | 343 cmds::Uniform1f cmd; |
332 cmd.Init(1, 2); | 344 cmd.Init(1, 2); |
333 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 345 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
334 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 346 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
335 } | 347 } |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
999 // TODO(gman): RequestExtensionCHROMIUM | 1011 // TODO(gman): RequestExtensionCHROMIUM |
1000 | 1012 |
1001 // TODO(gman): GetProgramInfoCHROMIUM | 1013 // TODO(gman): GetProgramInfoCHROMIUM |
1002 | 1014 |
1003 // TODO(gman): GetTranslatedShaderSourceANGLE | 1015 // TODO(gman): GetTranslatedShaderSourceANGLE |
1004 // TODO(gman): PostSubBufferCHROMIUM | 1016 // TODO(gman): PostSubBufferCHROMIUM |
1005 // TODO(gman): TexImageIOSurface2DCHROMIUM | 1017 // TODO(gman): TexImageIOSurface2DCHROMIUM |
1006 // TODO(gman): CopyTextureCHROMIUM | 1018 // TODO(gman): CopyTextureCHROMIUM |
1007 // TODO(gman): DrawArraysInstancedANGLE | 1019 // TODO(gman): DrawArraysInstancedANGLE |
1008 // TODO(gman): DrawElementsInstancedANGLE | 1020 // TODO(gman): DrawElementsInstancedANGLE |
1009 // TODO(gman): VertexAttribDivisorANGLE | |
1010 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ | 1021 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |
OLD | NEW |