| Index: gpu/command_buffer/tests/gl_copy_tex_image_2d_workaround_unittest.cc
|
| diff --git a/gpu/command_buffer/tests/gl_copy_tex_image_2d_workaround_unittest.cc b/gpu/command_buffer/tests/gl_copy_tex_image_2d_workaround_unittest.cc
|
| index 050fc42c36f78cd4f1f54c60ff3091cb5a405b72..5ac0567fc5942dd85a97e656e3600899ff8535b6 100644
|
| --- a/gpu/command_buffer/tests/gl_copy_tex_image_2d_workaround_unittest.cc
|
| +++ b/gpu/command_buffer/tests/gl_copy_tex_image_2d_workaround_unittest.cc
|
| @@ -117,8 +117,10 @@ TEST_P(GLCopyTexImage2DWorkaroundTest, UseIntermediaryTexture) {
|
| 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);
|
|
|
|
|