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.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.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_thread.cc b/ui/ozone/platform/drm/gpu/drm_thread.cc
index 875f3844939d9d017414ce8ae84f7cfeac6f16aa..c65e551f39290ba60e5106007849c580ea7df720 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread.cc
@@ -106,6 +106,10 @@ void DrmThread::CreateBuffer(gfx::AcceleratedWidget widget,
*buffer = GbmBuffer::CreateBuffer(gbm, format, size, usage);
}
+void DrmThread::GetSupportedFormats(std::vector<uint32_t>* support_formats) {
+ *support_formats = display_manager_->GetSupportedFormats();
+}
+
void DrmThread::SchedulePageFlip(gfx::AcceleratedWidget widget,
const std::vector<OverlayPlane>& planes,
const SwapCompletionCallback& callback) {

Powered by Google App Engine
This is Rietveld 408576698