| Index: gpu/command_buffer/tests/gl_iosurface_readback_workaround_unittest.cc
|
| diff --git a/gpu/command_buffer/tests/gl_iosurface_readback_workaround_unittest.cc b/gpu/command_buffer/tests/gl_iosurface_readback_workaround_unittest.cc
|
| index ab176e97111ef0508118b8b7f99ad36c8cc335c7..2cae72efc79f9e8a96d3e88464cf9aa984e59c47 100644
|
| --- a/gpu/command_buffer/tests/gl_iosurface_readback_workaround_unittest.cc
|
| +++ b/gpu/command_buffer/tests/gl_iosurface_readback_workaround_unittest.cc
|
| @@ -51,8 +51,10 @@ TEST_F(GLIOSurfaceReadbackWorkaroundTest, ReadPixels) {
|
| glBindTexture(source_target, source_texture);
|
| glTexParameteri(source_target, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
|
| glTexParameteri(source_target, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
| - GLuint image_id = glCreateGpuMemoryBufferImageCHROMIUM(
|
| - width, height, GL_RGBA, GL_READ_WRITE_CHROMIUM);
|
| + std::unique_ptr<gfx::GpuMemoryBuffer> buffer(gl_.CreateGpuMemoryBuffer(
|
| + gfx::Size(width, height), gfx::BufferFormat::RGBA_8888));
|
| + GLuint image_id =
|
| + glCreateImageCHROMIUM(buffer->AsClientBuffer(), width, height, GL_RGBA);
|
| ASSERT_NE(0u, image_id);
|
| glBindTexImage2DCHROMIUM(source_target, image_id);
|
|
|
|
|