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

Unified Diff: content/browser/gpu/browser_gpu_memory_buffer_manager.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
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 28bd1463cb76e20aa4a21ddd7691317033a31bd1..bc4d9faac5263d61cf0d760fdf7af174aae38d9b 100644
--- a/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
+++ b/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
@@ -118,6 +118,8 @@ GetSupportedGpuMemoryBufferConfigurations(gfx::GpuMemoryBufferType type) {
{gfx::BufferFormat::BGRA_8888, gfx::BufferUsage::PERSISTENT_MAP},
{gfx::BufferFormat::UYVY_422, gfx::BufferUsage::MAP},
{gfx::BufferFormat::UYVY_422, 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))
@@ -130,6 +132,7 @@ GetSupportedGpuMemoryBufferConfigurations(gfx::GpuMemoryBufferType type) {
{gfx::BufferFormat::BGRA_8888, gfx::BufferUsage::SCANOUT},
{gfx::BufferFormat::BGRX_8888, gfx::BufferUsage::SCANOUT},
{gfx::BufferFormat::UYVY_422, gfx::BufferUsage::SCANOUT},
+ {gfx::BufferFormat::YUV_420_BIPLANAR, gfx::BufferUsage::SCANOUT},
};
for (auto& configuration : kScanoutConfigurations) {
if (IsGpuMemoryBufferFactoryConfigurationSupported(type, configuration))
« no previous file with comments | « components/view_manager/gles2/mojo_gpu_memory_buffer.cc ('k') | content/common/gpu/client/gpu_memory_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698