| Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_2.cc
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_2.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_2.cc
|
| index 5c242bee6218972c79c31b549e48e04b4309a6e0..2b471b9722e17b18d13d0882ba8d9d0e5d872220 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_2.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_2.cc
|
| @@ -456,12 +456,6 @@ void GLES2DecoderTestBase::SpecializedSetup<cmds::UniformMatrix2fvImmediate, 0>(
|
| };
|
|
|
| template <>
|
| -void GLES2DecoderTestBase::SpecializedSetup<cmds::UniformMatrix3fvImmediate, 0>(
|
| - bool /* valid */) {
|
| - SetupShaderForUniform(GL_FLOAT_MAT3);
|
| -};
|
| -
|
| -template <>
|
| void GLES2DecoderTestBase::SpecializedSetup<cmds::TexParameterf, 0>(
|
| bool /* valid */) {
|
| DoBindTexture(GL_TEXTURE_2D, client_texture_id_, kServiceTextureId);
|
| @@ -511,6 +505,32 @@ void GLES2DecoderTestBase::SpecializedSetup<cmds::GetVertexAttribfv, 0>(
|
| }
|
| };
|
|
|
| +template <>
|
| +void GLES2DecoderTestBase::SpecializedSetup<cmds::GetVertexAttribIiv, 0>(
|
| + bool valid) {
|
| + DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId);
|
| + DoVertexAttribPointer(1, 1, GL_FLOAT, 0, 0);
|
| + if (valid) {
|
| + EXPECT_CALL(*gl_, GetError())
|
| + .WillOnce(Return(GL_NO_ERROR))
|
| + .WillOnce(Return(GL_NO_ERROR))
|
| + .RetiresOnSaturation();
|
| + }
|
| +};
|
| +
|
| +template <>
|
| +void GLES2DecoderTestBase::SpecializedSetup<cmds::GetVertexAttribIuiv, 0>(
|
| + bool valid) {
|
| + DoBindBuffer(GL_ARRAY_BUFFER, client_buffer_id_, kServiceBufferId);
|
| + DoVertexAttribPointer(1, 1, GL_FLOAT, 0, 0);
|
| + if (valid) {
|
| + EXPECT_CALL(*gl_, GetError())
|
| + .WillOnce(Return(GL_NO_ERROR))
|
| + .WillOnce(Return(GL_NO_ERROR))
|
| + .RetiresOnSaturation();
|
| + }
|
| +};
|
| +
|
|
|
| #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h"
|
|
|
|
|