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

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
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..6b4c0174d354924afcfb81b4ee4b6ebca977cde6 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread_proxy.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread_proxy.cc
@@ -39,4 +39,11 @@ scoped_refptr<GbmBuffer> DrmThreadProxy::CreateBuffer(
return buffer;
}
+void DrmThreadProxy::GetSupportedFormats(
+ std::vector<uint32_t>* support_formats) {
spang 2016/01/20 18:52:24 Be consistent with naming: supported_formats
william.xie 2016/01/21 02:14:02 Done.
+ PostSyncTask(drm_thread_.task_runner(),
+ base::Bind(&DrmThread::GetSupportedFormats,
+ base::Unretained(&drm_thread_), support_formats));
+}
+
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698