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); |