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

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

Issue 1598573002: Propagate supported scanout formats from driver to SurfaceFactoryOzone. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: 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 eaa353b4bf8db598168199960735463547cf7420..8427a4a51fa5f1098c137f7862b99f284e8d3ad9 100644
--- a/ui/ozone/public/surface_factory_ozone.h
+++ b/ui/ozone/public/surface_factory_ozone.h
@@ -100,6 +100,12 @@ class OZONE_BASE_EXPORT SurfaceFactoryOzone {
// caller. desired_list contains list of desired EGL properties and values.
virtual const int32_t* GetEGLSurfaceProperties(const int32_t* desired_list);
+ // Get supported formats for given buffer usage. Return true if get
+ // successfully.
+ virtual bool GetSupportedFormats(
+ gfx::BufferUsage buffer_usage,
+ std::vector<gfx::BufferFormat>* support_formats);
+
// 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.

Powered by Google App Engine
This is Rietveld 408576698