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

Unified Diff: ui/gfx/gpu_memory_buffer.cc

Issue 1282313002: Add YUV_420_BIPLANAR to gfx::BufferFormat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gmb-planes
Patch Set: Enable it on Mac Created 5 years, 4 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: ui/gfx/gpu_memory_buffer.cc
diff --git a/ui/gfx/gpu_memory_buffer.cc b/ui/gfx/gpu_memory_buffer.cc
index adb8d98edb71eba492e269ce633616e1dd29d033..4dd4f072a76e38948ec665a1330ef727f2e1688c 100644
--- a/ui/gfx/gpu_memory_buffer.cc
+++ b/ui/gfx/gpu_memory_buffer.cc
@@ -35,6 +35,8 @@ size_t GpuMemoryBuffer::NumberOfPlanes(BufferFormat format) {
case BufferFormat::RGBX_8888:
case BufferFormat::BGRA_8888:
return 1;
+ case BufferFormat::YUV_420_BIPLANAR:
+ return 2;
case BufferFormat::YUV_420:
return 3;
}

Powered by Google App Engine
This is Rietveld 408576698