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

Unified Diff: ui/ozone/platform/drm/gpu/drm_thread_proxy.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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread_proxy.h ('k') | ui/ozone/platform/drm/gpu/gbm_surface_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_thread_proxy.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_thread_proxy.cc b/ui/ozone/platform/drm/gpu/drm_thread_proxy.cc
index b46e11624ab33268f802299a1f8e5a4ca4986a18..8ae223c004a5ceae704ed8358bfdfef9f257424b 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread_proxy.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread_proxy.cc
@@ -39,4 +39,13 @@ scoped_refptr<GbmBuffer> DrmThreadProxy::CreateBuffer(
return buffer;
}
+void DrmThreadProxy::GetScanoutFormats(
+ gfx::AcceleratedWidget widget,
+ std::vector<gfx::BufferFormat>* scanout_formats) {
+ PostSyncTask(
+ drm_thread_.task_runner(),
+ base::Bind(&DrmThread::GetScanoutFormats, base::Unretained(&drm_thread_),
+ widget, scanout_formats));
+}
+
} // namespace ui
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread_proxy.h ('k') | ui/ozone/platform/drm/gpu/gbm_surface_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698