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 |
11 // It is included by gles2_cmd_decoder_unittest_2.cc | 11 // It is included by gles2_cmd_decoder_unittest_2.cc |
12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ | 12 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |
13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ | 13 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |
14 | 14 |
| 15 TEST_P(GLES2DecoderTest2, PolygonOffsetValidArgs) { |
| 16 EXPECT_CALL(*gl_, PolygonOffset(1, 2)); |
| 17 SpecializedSetup<cmds::PolygonOffset, 0>(true); |
| 18 cmds::PolygonOffset cmd; |
| 19 cmd.Init(1, 2); |
| 20 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 21 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 22 } |
| 23 |
| 24 TEST_P(GLES2DecoderTest2, ReadBufferValidArgs) { |
| 25 EXPECT_CALL(*gl_, ReadBuffer(1)); |
| 26 SpecializedSetup<cmds::ReadBuffer, 0>(true); |
| 27 cmds::ReadBuffer cmd; |
| 28 cmd.Init(1); |
| 29 decoder_->set_unsafe_es3_apis_enabled(true); |
| 30 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 31 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 32 decoder_->set_unsafe_es3_apis_enabled(false); |
| 33 EXPECT_EQ(error::kUnknownCommand, ExecuteCmd(cmd)); |
| 34 } |
| 35 // TODO(gman): ReadPixels |
| 36 |
15 // TODO(gman): ReleaseShaderCompiler | 37 // TODO(gman): ReleaseShaderCompiler |
16 | 38 |
17 TEST_P(GLES2DecoderTest2, RenderbufferStorageValidArgs) { | 39 TEST_P(GLES2DecoderTest2, RenderbufferStorageValidArgs) { |
18 SpecializedSetup<cmds::RenderbufferStorage, 0>(true); | 40 SpecializedSetup<cmds::RenderbufferStorage, 0>(true); |
19 cmds::RenderbufferStorage cmd; | 41 cmds::RenderbufferStorage cmd; |
20 cmd.Init(GL_RENDERBUFFER, GL_RGBA4, 3, 4); | 42 cmd.Init(GL_RENDERBUFFER, GL_RGBA4, 3, 4); |
21 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 43 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
22 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 44 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
23 } | 45 } |
24 | 46 |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 // TODO(gman): ResizeCHROMIUM | 1030 // TODO(gman): ResizeCHROMIUM |
1009 // TODO(gman): GetRequestableExtensionsCHROMIUM | 1031 // TODO(gman): GetRequestableExtensionsCHROMIUM |
1010 | 1032 |
1011 // TODO(gman): RequestExtensionCHROMIUM | 1033 // TODO(gman): RequestExtensionCHROMIUM |
1012 | 1034 |
1013 // TODO(gman): GetProgramInfoCHROMIUM | 1035 // TODO(gman): GetProgramInfoCHROMIUM |
1014 | 1036 |
1015 // TODO(gman): GetTranslatedShaderSourceANGLE | 1037 // TODO(gman): GetTranslatedShaderSourceANGLE |
1016 // TODO(gman): PostSubBufferCHROMIUM | 1038 // TODO(gman): PostSubBufferCHROMIUM |
1017 // TODO(gman): TexImageIOSurface2DCHROMIUM | 1039 // TODO(gman): TexImageIOSurface2DCHROMIUM |
1018 // TODO(gman): CopyTextureCHROMIUM | |
1019 // TODO(gman): DrawArraysInstancedANGLE | |
1020 // TODO(gman): DrawElementsInstancedANGLE | |
1021 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ | 1040 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_2_AUTOGEN_H_ |
OLD | NEW |