| 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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 3459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3470 EXPECT_EQ(num_formats, result->GetNumResults()); | 3470 EXPECT_EQ(num_formats, result->GetNumResults()); |
| 3471 | 3471 |
| 3472 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 3472 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 3473 } | 3473 } |
| 3474 | 3474 |
| 3475 TEST_P(GLES3DecoderTest, TexStorage3DValidArgs) { | 3475 TEST_P(GLES3DecoderTest, TexStorage3DValidArgs) { |
| 3476 DoBindTexture(GL_TEXTURE_3D, client_texture_id_, kServiceTextureId); | 3476 DoBindTexture(GL_TEXTURE_3D, client_texture_id_, kServiceTextureId); |
| 3477 EXPECT_CALL(*gl_, TexStorage3D(GL_TEXTURE_3D, 2, GL_RGB565, 4, 5, 6)) | 3477 EXPECT_CALL(*gl_, TexStorage3D(GL_TEXTURE_3D, 2, GL_RGB565, 4, 5, 6)) |
| 3478 .Times(1) | 3478 .Times(1) |
| 3479 .RetiresOnSaturation(); | 3479 .RetiresOnSaturation(); |
| 3480 EXPECT_CALL(*gl_, GetError()) | |
| 3481 .WillOnce(Return(GL_NO_ERROR)) | |
| 3482 .WillOnce(Return(GL_NO_ERROR)) | |
| 3483 .RetiresOnSaturation(); | |
| 3484 cmds::TexStorage3D cmd; | 3480 cmds::TexStorage3D cmd; |
| 3485 cmd.Init(GL_TEXTURE_3D, 2, GL_RGB565, 4, 5, 6); | 3481 cmd.Init(GL_TEXTURE_3D, 2, GL_RGB565, 4, 5, 6); |
| 3486 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 3482 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
| 3487 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 3483 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
| 3488 } | 3484 } |
| 3489 | 3485 |
| 3490 TEST_P(GLES3DecoderTest, TexImage3DValidArgs) { | 3486 TEST_P(GLES3DecoderTest, TexImage3DValidArgs) { |
| 3491 const GLenum kTarget = GL_TEXTURE_3D; | 3487 const GLenum kTarget = GL_TEXTURE_3D; |
| 3492 const GLint kLevel = 2; | 3488 const GLint kLevel = 2; |
| 3493 const GLint kInternalFormat = GL_RGBA8; | 3489 const GLint kInternalFormat = GL_RGBA8; |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3691 // TODO(gman): CompressedTexSubImage2DImmediate | 3687 // TODO(gman): CompressedTexSubImage2DImmediate |
| 3692 | 3688 |
| 3693 // TODO(gman): TexImage2D | 3689 // TODO(gman): TexImage2D |
| 3694 | 3690 |
| 3695 // TODO(gman): TexImage2DImmediate | 3691 // TODO(gman): TexImage2DImmediate |
| 3696 | 3692 |
| 3697 // TODO(gman): TexSubImage2DImmediate | 3693 // TODO(gman): TexSubImage2DImmediate |
| 3698 | 3694 |
| 3699 } // namespace gles2 | 3695 } // namespace gles2 |
| 3700 } // namespace gpu | 3696 } // namespace gpu |
| OLD | NEW |