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

Unified Diff: ui/gl/gl_image_shared_memory_unittest.cc

Issue 1419733005: gpu: Add YCbCr 420v extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reveman's comments. Created 5 years, 1 month 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: ui/gl/gl_image_shared_memory_unittest.cc
diff --git a/ui/gl/gl_image_shared_memory_unittest.cc b/ui/gl/gl_image_shared_memory_unittest.cc
index c7b85db3351866f5878fad215213dc5bd938d8d1..e8efc993029f0581da630d1c27c67e9b249c20b6 100644
--- a/ui/gl/gl_image_shared_memory_unittest.cc
+++ b/ui/gl/gl_image_shared_memory_unittest.cc
@@ -24,7 +24,7 @@ class GLImageSharedMemoryTestDelegate {
DCHECK(rv);
GLImageTestSupport::SetBufferDataToColor(
size.width(), size.height(),
- static_cast<int>(RowSizeForBufferFormat(size.width(), format, 0)),
+ static_cast<int>(RowSizeForBufferFormat(size.width(), format, 0)), 0,
format, color, reinterpret_cast<uint8_t*>(shared_memory.memory()));
scoped_refptr<gl::GLImageSharedMemory> image(new gl::GLImageSharedMemory(
size, gl::GLImageMemory::GetInternalFormatForTesting(format)));
@@ -69,7 +69,7 @@ class GLImageSharedMemoryPoolTestDelegate {
size.width(), size.height(),
static_cast<int>(
RowSizeForBufferFormat(size.width(), BufferFormat::RGBA_8888, 0)),
- BufferFormat::RGBA_8888, color,
+ 0, BufferFormat::RGBA_8888, color,
reinterpret_cast<uint8_t*>(shared_memory.memory()) + buffer_offset);
scoped_refptr<gl::GLImageSharedMemory> image(
new gl::GLImageSharedMemory(size, GL_RGBA));

Powered by Google App Engine
This is Rietveld 408576698