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

Unified Diff: ui/ozone/platform/drm/gpu/gbm_surface_factory.cc

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.cc
diff --git a/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc b/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
index fb9157bc9a8c451910725be872aa1cf7b80d56a4..bcc4a96b62611fbcceedaa6022cd47ba8f397541 100644
--- a/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
+++ b/ui/ozone/platform/drm/gpu/gbm_surface_factory.cc
@@ -103,6 +103,12 @@ GbmSurfaceFactory::CreateSurfacelessEGLSurfaceForWidget(
new GbmSurfaceless(drm_thread_->CreateDrmWindowProxy(widget), this));
}
+void GbmSurfaceFactory::GetSupportedFormats(
+ std::vector<uint32_t>* support_formats) {
+ if (drm_thread_ != nullptr)
+ drm_thread_->GetSupportedFormats(support_formats);
kalyank 2016/01/19 07:34:22 We can cache them here? no need to post a synchron
william.xie 2016/01/19 10:07:07 Done.
+}
+
scoped_refptr<ui::NativePixmap> GbmSurfaceFactory::CreateNativePixmap(
gfx::AcceleratedWidget widget,
gfx::Size size,

Powered by Google App Engine
This is Rietveld 408576698