Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc |
index b4b54cc152d3e58f8fe40e89330cbdbe64883dae..bae371716496d7cc530e94622f3df3ba16c54b5f 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc |
@@ -7979,6 +7979,8 @@ TEST_F(GLES2DecoderManualInitTest, AsyncPixelTransfers) { |
AsyncTexSubImage2DCHROMIUM texsubimage_cmd; |
texsubimage_cmd.Init(GL_TEXTURE_2D, 0, 0, 0, 8, 8, GL_RGBA, |
GL_UNSIGNED_BYTE, kSharedMemoryId, kSharedMemoryOffset); |
+ WaitAsyncTexImage2DCHROMIUM wait_cmd; |
+ wait_cmd.Init(GL_TEXTURE_2D); |
gfx::AsyncTexImage2DParams teximage_params = |
{GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE}; |
@@ -8085,6 +8087,14 @@ TEST_F(GLES2DecoderManualInitTest, AsyncPixelTransfers) { |
EXPECT_TRUE(info->SafeToRenderFrom()); |
} |
+ // WaitAsyncTexSubImage2D |
+ { |
+ // Command succeeds. |
+ EXPECT_CALL(*delegate, WaitForTransferCompletion(state)); |
+ EXPECT_EQ(error::kNoError, ExecuteCmd(wait_cmd)); |
+ EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
+ } |
+ |
decoder_->SetAsyncPixelTransferDelegate(NULL); |
info->SetAsyncTransferState(scoped_ptr<gfx::AsyncPixelTransferState>()); |
} |