Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc

Issue 2648893002: Remove remaining traces of CreateGpuMemoryBufferImageCHROMIUM (Closed)
Patch Set: Rebase, but don't pull in extra changes... Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc b/gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc
index cdaaab26351aae5a003701a8ad7cefc91fa12e43..5be1671cb362b5b13c355f4a0166a1104ab58312 100644
--- a/gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc
+++ b/gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc
@@ -300,8 +300,10 @@ class GLCopyTextureCHROMIUMTest
void CreateBackingForTexture(GLenum target, GLsizei width, GLsizei height) {
if (target == GL_TEXTURE_RECTANGLE_ARB) {
- 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);
glBindTexImage2DCHROMIUM(target, image_id);
} else {
glTexImage2D(target, 0, GL_RGBA, width, height, 0, GL_RGBA,

Powered by Google App Engine
This is Rietveld 408576698