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

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: Actually enable/disable capabilities. Typo. Created 5 years 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
« no previous file with comments | « ui/gl/gl_image_ref_counted_memory_unittest.cc ('k') | ui/gl/gl_tests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 da6feac37d4040512eafc5fa1b290c9312c5a82b..f0e88239310c96dde48e654a444cc3d5e57da6da 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)));
@@ -71,7 +71,7 @@ class GLImageSharedMemoryPoolTestDelegate {
// Place buffer at a non-zero non-page-aligned offset in shared memory.
size_t buffer_offset = 3 * base::SysInfo::VMAllocationGranularity() / 2;
GLImageTestSupport::SetBufferDataToColor(
- size.width(), size.height(), static_cast<int>(stride),
+ size.width(), size.height(), static_cast<int>(stride), 0,
gfx::BufferFormat::RGBA_8888, color,
reinterpret_cast<uint8_t*>(shared_memory.memory()) + buffer_offset);
scoped_refptr<gl::GLImageSharedMemory> image(
« no previous file with comments | « ui/gl/gl_image_ref_counted_memory_unittest.cc ('k') | ui/gl/gl_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698