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

Unified Diff: content/browser/gpu/browser_gpu_memory_buffer_manager.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: content/browser/gpu/browser_gpu_memory_buffer_manager.cc
diff --git a/content/browser/gpu/browser_gpu_memory_buffer_manager.cc b/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
index 7df495c816d2a2933aa3d712c49e9df6eb7dc14c..3770c7628222f94dc0a38c96b3e0e727d0116be7 100644
--- a/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
+++ b/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
@@ -114,7 +114,10 @@ GetSupportedGpuMemoryBufferConfigurations(gfx::GpuMemoryBufferType type) {
{gfx::BufferFormat::RGBA_8888, gfx::BufferUsage::MAP},
{gfx::BufferFormat::RGBA_8888, gfx::BufferUsage::PERSISTENT_MAP},
{gfx::BufferFormat::BGRA_8888, gfx::BufferUsage::MAP},
- {gfx::BufferFormat::BGRA_8888, gfx::BufferUsage::PERSISTENT_MAP}};
+ {gfx::BufferFormat::BGRA_8888, gfx::BufferUsage::PERSISTENT_MAP},
+ {gfx::BufferFormat::YUV_420_BIPLANAR, gfx::BufferUsage::MAP},
+ {gfx::BufferFormat::YUV_420_BIPLANAR, gfx::BufferUsage::PERSISTENT_MAP},
+ };
for (auto& configuration : kNativeConfigurations) {
if (IsGpuMemoryBufferFactoryConfigurationSupported(type, configuration))
configurations.push_back(configuration);
@@ -124,7 +127,9 @@ GetSupportedGpuMemoryBufferConfigurations(gfx::GpuMemoryBufferType type) {
#if defined(USE_OZONE) || defined(OS_MACOSX)
const GpuMemoryBufferFactory::Configuration kScanoutConfigurations[] = {
{gfx::BufferFormat::BGRA_8888, gfx::BufferUsage::SCANOUT},
- {gfx::BufferFormat::RGBX_8888, gfx::BufferUsage::SCANOUT}};
+ {gfx::BufferFormat::RGBX_8888, gfx::BufferUsage::SCANOUT},
+ {gfx::BufferFormat::YUV_420_BIPLANAR, gfx::BufferUsage::SCANOUT},
+ };
for (auto& configuration : kScanoutConfigurations) {
if (IsGpuMemoryBufferFactoryConfigurationSupported(type, configuration))
configurations.push_back(configuration);

Powered by Google App Engine
This is Rietveld 408576698