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

Unified Diff: ui/gfx/buffer_format_util.cc

Issue 1282313002: Add YUV_420_BIPLANAR to gfx::BufferFormat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gmb-planes
Patch Set: Rebase 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 | « gpu/command_buffer/tests/gl_manager.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 61cf26066719d095e131c66e44ba9a3c72ef9dc6..12e67afc783e7c4ca642087f55cd07f9beebe3f3 100644
--- a/ui/gfx/buffer_format_util.cc
+++ b/ui/gfx/buffer_format_util.cc
@@ -21,6 +21,8 @@ size_t NumberOfPlanesForBufferFormat(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;
}
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | ui/gfx/buffer_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698