| Index: gpu/command_buffer/service/test_helper.cc
|
| diff --git a/gpu/command_buffer/service/test_helper.cc b/gpu/command_buffer/service/test_helper.cc
|
| index b5fa86451ce6a78e2c0dd4d7430553be87d683c0..503fcf84f297e6d1a5f2ffe41919af801a881a08 100644
|
| --- a/gpu/command_buffer/service/test_helper.cc
|
| +++ b/gpu/command_buffer/service/test_helper.cc
|
| @@ -638,6 +638,37 @@ void TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion(
|
| .RetiresOnSaturation();
|
| }
|
|
|
| + if (context_type == CONTEXT_TYPE_OPENGLES2 &&
|
| + !strstr(extensions, "GL_EXT_color_buffer_half_float")) {
|
| + EXPECT_CALL(*gl, TexImage2D(GL_TEXTURE_2D, 0, GL_R16F, width, width, 0,
|
| + GL_RED, GL_FLOAT, _))
|
| + .Times(1)
|
| + .RetiresOnSaturation();
|
| + EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER))
|
| + .Times(1)
|
| + .RetiresOnSaturation();
|
| + EXPECT_CALL(*gl, TexImage2D(GL_TEXTURE_2D, 0, GL_RG16F, width, width, 0,
|
| + GL_RG, GL_FLOAT, _))
|
| + .Times(1)
|
| + .RetiresOnSaturation();
|
| + EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER))
|
| + .Times(1)
|
| + .RetiresOnSaturation();
|
| + EXPECT_CALL(*gl, TexImage2D(GL_TEXTURE_2D, 0, GL_RGB16F, width, width, 0,
|
| + GL_RGB, GL_FLOAT, _))
|
| + .Times(1)
|
| + .RetiresOnSaturation();
|
| + EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER))
|
| + .Times(1)
|
| + .RetiresOnSaturation();
|
| + EXPECT_CALL(*gl, TexImage2D(GL_TEXTURE_2D, 0, GL_RGBA16F, width, width, 0,
|
| + GL_RGBA, GL_FLOAT, _))
|
| + .Times(1)
|
| + .RetiresOnSaturation();
|
| + EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER))
|
| + .Times(1)
|
| + .RetiresOnSaturation();
|
| + }
|
|
|
| EXPECT_CALL(*gl, DeleteFramebuffersEXT(1, _))
|
| .Times(1)
|
|
|