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

Unified Diff: gpu/command_buffer/common/gpu_memory_buffer_support.cc

Issue 2296433002: Add NV12 buffer scanout support from exo to ozone. (Closed)
Patch Set: Don't claim that image_ycbcr_420v is available. Created 4 years, 3 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 | « components/exo/wayland/server.cc ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/gpu_memory_buffer_support.cc
diff --git a/gpu/command_buffer/common/gpu_memory_buffer_support.cc b/gpu/command_buffer/common/gpu_memory_buffer_support.cc
index eebfbbfb8afca18fa565dcadb2a9e1eaf9ac039f..a9480a0dbbdaea620f6a30056c5b08593bad52fc 100644
--- a/gpu/command_buffer/common/gpu_memory_buffer_support.cc
+++ b/gpu/command_buffer/common/gpu_memory_buffer_support.cc
@@ -114,7 +114,13 @@ bool IsGpuMemoryBufferFormatSupported(gfx::BufferFormat format,
case gfx::BufferFormat::YVU_420:
return true;
case gfx::BufferFormat::YUV_420_BIPLANAR:
+#if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY)
+ // TODO(dcastagna): Determine ycbcr_420v_image on CrOS at runtime
+ // querying minigbm. crbug.com/646148
+ return true;
+#else
return capabilities.image_ycbcr_420v;
+#endif
}
NOTREACHED();
« no previous file with comments | « components/exo/wayland/server.cc ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698