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

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

Issue 962723002: Change CHROMIUM_image declarations to support multi planar input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mcasas@comments Created 5 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_gpu_memory_buffer_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc b/gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc
index 8430dfb9eb45fe84585d2a144dc2ece65c9e8362..b391e2a89e24aa9f4370a10989a3c8d62d9c38ec 100644
--- a/gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc
+++ b/gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc
@@ -96,8 +96,9 @@ TEST_F(GpuMemoryBufferTest, Lifecycle) {
buffer->Unmap();
// Create the image. This should add the image ID to the ImageManager.
+ ClientBuffer client_buffer = buffer->AsClientBuffer();
reveman 2015/03/02 20:09:56 &buffer->AsClientBuffer() below instead of using a
GLuint image_id = glCreateImageCHROMIUM(
- buffer->AsClientBuffer(), kImageWidth, kImageHeight, GL_RGBA);
+ &client_buffer, kImageWidth, kImageHeight, GL_RGBA);
EXPECT_NE(0u, image_id);
EXPECT_TRUE(gl_.decoder()->GetImageManager()->LookupImage(image_id) != NULL);

Powered by Google App Engine
This is Rietveld 408576698