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

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

Issue 1422563002: [Ozone] Enables overlay render format setting path and by default use UYVY (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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_buffer.cc
diff --git a/ui/ozone/platform/drm/gpu/gbm_buffer.cc b/ui/ozone/platform/drm/gpu/gbm_buffer.cc
index 117a52f7c1bb145828cc6132d9dcb074c35962ce..8d8dc24418977b666d09bef6f947f0a355caad7e 100644
--- a/ui/ozone/platform/drm/gpu/gbm_buffer.cc
+++ b/ui/ozone/platform/drm/gpu/gbm_buffer.cc
@@ -113,6 +113,10 @@ int GbmPixmap::GetDmaBufPitch() {
return gbm_bo_get_stride(buffer_->bo());
}
+gfx::BufferFormat GbmPixmap::GetPixelFormat() {
+ return GetBufferFormatFromFourCCFormat(buffer_->GetFramebufferPixelFormat());
+}
+
bool GbmPixmap::ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
int plane_z_order,
gfx::OverlayTransform plane_transform,

Powered by Google App Engine
This is Rietveld 408576698