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

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

Issue 2743403005: ozone: Add an opaque fb to ScanoutBuffer for primary planes. (Closed)
Patch Set: Replace PrimaryPlane with Opaque. Created 3 years, 9 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_overlay_validator.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_overlay_validator.cc b/ui/ozone/platform/drm/gpu/drm_overlay_validator.cc
index af00fe3ba0eb7cac5c1dd806bbf7715988ecf695..bfe65bbbdc9d2f5decc9dabf53451d736471da44 100644
--- a/ui/ozone/platform/drm/gpu/drm_overlay_validator.cc
+++ b/ui/ozone/platform/drm/gpu/drm_overlay_validator.cc
@@ -131,7 +131,10 @@ std::vector<OverlayCheck_Params> DrmOverlayValidator::TestPageFlip(
gfx::Size scaled_buffer_size = GetScaledSize(
overlay.buffer_size, overlay.display_rect, overlay.crop_rect);
- uint32_t original_format = GetFourCCFormatForFramebuffer(overlay.format);
+ uint32_t original_format =
+ overlay.plane_z_order
+ ? GetFourCCFormatFromBufferFormat(overlay.format)
+ : GetFourCCFormatForOpaqueFramebuffer(overlay.format);
scoped_refptr<ScanoutBuffer> buffer =
GetBufferForPageFlipTest(drm, overlay.buffer_size, original_format,
buffer_generator_, &reusable_buffers);
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_buffer.cc ('k') | ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698