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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc

Issue 1024113003: Add multi-planar functions to GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment fix. Created 5 years, 9 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: content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc b/content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc
index 419dfeed92fa7c1ca0fa73a40b4a92dd7cc9df53..ba55d78349e7b44111439920cad1f98c682d4797 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_unittest.cc
@@ -106,10 +106,12 @@ TEST_P(GpuMemoryBufferImplTest, Map) {
ASSERT_TRUE(buffer);
EXPECT_FALSE(buffer->IsMapped());
- void* memory = buffer->Map();
- ASSERT_TRUE(memory);
+ void* memory;
+ bool rv = buffer->Map(&memory);
+ ASSERT_TRUE(rv);
EXPECT_TRUE(buffer->IsMapped());
- uint32 stride = buffer->GetStride();
+ uint32 stride;
+ buffer->GetStride(&stride);
EXPECT_GE(stride, width_in_bytes);
memcpy(memory, data.get(), width_in_bytes);
EXPECT_EQ(memcmp(memory, data.get(), width_in_bytes), 0);

Powered by Google App Engine
This is Rietveld 408576698