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

Unified Diff: ui/gfx/buffer_format_util.cc

Issue 1316493004: Add support for converting I420 software frames into NV12 hardware frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@snapshot
Patch Set: 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
« no previous file with comments | « media/video/gpu_memory_buffer_video_frame_pool_unittest.cc ('k') | ui/gfx/buffer_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/buffer_format_util.cc
diff --git a/ui/gfx/buffer_format_util.cc b/ui/gfx/buffer_format_util.cc
index e0abf167b01e61f86b59e42f7879e4947b577e5d..17dfe1500a591e333f6fe01a4bba40c3860e0423 100644
--- a/ui/gfx/buffer_format_util.cc
+++ b/ui/gfx/buffer_format_util.cc
@@ -22,6 +22,8 @@ size_t NumberOfPlanesForBufferFormat(BufferFormat format) {
case BufferFormat::BGRA_8888:
case BufferFormat::UYVY_422:
return 1;
+ case BufferFormat::YUV_420_BIPLANAR:
+ return 2;
case BufferFormat::YUV_420:
return 3;
}
« no previous file with comments | « media/video/gpu_memory_buffer_video_frame_pool_unittest.cc ('k') | ui/gfx/buffer_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698