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

Unified Diff: ui/ozone/platform/drm/gpu/gbm_surface_factory.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/platform/drm/gpu/gbm_surface_factory.h
diff --git a/ui/ozone/platform/drm/gpu/gbm_surface_factory.h b/ui/ozone/platform/drm/gpu/gbm_surface_factory.h
index 5beb886865d6b24ffdaf11508f0d8ccdcb228547..a52a918c801fb70929a3119b0cc82e416c650f7b 100644
--- a/ui/ozone/platform/drm/gpu/gbm_surface_factory.h
+++ b/ui/ozone/platform/drm/gpu/gbm_surface_factory.h
@@ -31,6 +31,9 @@ class GbmSurfaceFactory : public SurfaceFactoryOzone {
// SurfaceFactoryOzone:
intptr_t GetNativeDisplay() override;
const int32_t* GetEGLSurfaceProperties(const int32_t* desired_list) override;
+ bool GetSupportedFormats(
+ gfx::BufferUsage buffer_usage,
+ std::vector<gfx::BufferFormat>* support_formats) override;
bool LoadEGLGLES2Bindings(
AddGLLibraryCallback add_gl_library,
SetGLGetProcAddressProcCallback set_gl_get_proc_address) override;
@@ -55,6 +58,9 @@ class GbmSurfaceFactory : public SurfaceFactoryOzone {
std::map<gfx::AcceleratedWidget, GbmSurfaceless*> widget_to_surface_map_;
+ std::map<gfx::BufferUsage, std::vector<gfx::BufferFormat>>
+ support_formats_map_;
+
DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory);
};

Powered by Google App Engine
This is Rietveld 408576698