| Index: gpu/command_buffer/client/gles2_implementation_unittest.cc
|
| diff --git a/gpu/command_buffer/client/gles2_implementation_unittest.cc b/gpu/command_buffer/client/gles2_implementation_unittest.cc
|
| index 92244240e0bf461cc44afba84fb28d13e3daf3ee..3c4dd8cdb1519a8385b4b9106071e01c304cdb77 100644
|
| --- a/gpu/command_buffer/client/gles2_implementation_unittest.cc
|
| +++ b/gpu/command_buffer/client/gles2_implementation_unittest.cc
|
| @@ -3251,7 +3251,7 @@ TEST_F(GLES2ImplementationManualInitTest, LoseContextOnOOM) {
|
| GLsizei max = std::numeric_limits<GLsizei>::max();
|
| EXPECT_CALL(*gpu_control_, CreateGpuMemoryBuffer(max, max, _, _))
|
| .WillOnce(Return(static_cast<gfx::GpuMemoryBuffer*>(NULL)));
|
| - gl_->CreateImageCHROMIUM(max, max, 0);
|
| + gl_->CreateImageCHROMIUM(max, max, 0, GL_READ_WRITE);
|
| // The context should be lost.
|
| Cmds expected;
|
| expected.cmd.Init(GL_GUILTY_CONTEXT_RESET_ARB, GL_UNKNOWN_CONTEXT_RESET_ARB);
|
| @@ -3269,7 +3269,7 @@ TEST_F(GLES2ImplementationManualInitTest, NoLoseContextOnOOM) {
|
| GLsizei max = std::numeric_limits<GLsizei>::max();
|
| EXPECT_CALL(*gpu_control_, CreateGpuMemoryBuffer(max, max, _, _))
|
| .WillOnce(Return(static_cast<gfx::GpuMemoryBuffer*>(NULL)));
|
| - gl_->CreateImageCHROMIUM(max, max, 0);
|
| + gl_->CreateImageCHROMIUM(max, max, 0, GL_READ_WRITE);
|
| // The context should not be lost.
|
| EXPECT_TRUE(NoCommandsWritten());
|
| }
|
|
|