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

Unified Diff: ui/ozone/public/surface_factory_ozone.h

Issue 2800653003: SurfaceFactoryOzone: expose scanout supported GpuMemoryBufferAttribs
Patch Set: use uint64_t modifiers, get modifiers for primary plane Created 3 years, 8 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 | « ui/ozone/platform/drm/gpu/gbm_surface_factory.cc ('k') | ui/ozone/public/surface_factory_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/surface_factory_ozone.h
diff --git a/ui/ozone/public/surface_factory_ozone.h b/ui/ozone/public/surface_factory_ozone.h
index 6e7726a660cd7ae319132e455f51f51883df75f6..70d651c64b4fa24870d987343d2254816f8a71e4 100644
--- a/ui/ozone/public/surface_factory_ozone.h
+++ b/ui/ozone/public/surface_factory_ozone.h
@@ -81,6 +81,12 @@ class OZONE_BASE_EXPORT SurfaceFactoryOzone {
virtual std::vector<gfx::BufferFormat> GetScanoutFormats(
gfx::AcceleratedWidget widget);
+ // Returns all scanout format-modifier pairs for a particular display
+ // controller connected to |widget|, or for all display controllers in case
+ // |widget| == kNullAcceleratedWidget.
+ virtual gfx::GpuMemoryBufferAttribVector GetScanoutFormatsWithModifiers(
+ gfx::AcceleratedWidget widget);
+
// Create a single native buffer to be used for overlay planes or zero copy
// for |widget| representing a particular display controller or default
// display controller for kNullAcceleratedWidget.
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_surface_factory.cc ('k') | ui/ozone/public/surface_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698