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

Unified Diff: ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_overlay_validator.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer_base.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_overlay_validator_unittest.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc b/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc
index f0a69e73ee3e6c36356fd60b50ee48b97e8decbe..3bffad61bcb7fc590edef8be8717d2dcd88b0537 100644
--- a/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc
+++ b/ui/ozone/platform/drm/gpu/drm_overlay_validator_unittest.cc
@@ -122,19 +122,21 @@ void DrmOverlayValidatorTest::SetUp() {
ui::OverlayCheck_Params primary_candidate;
primary_candidate.buffer_size = primary_rect_.size();
primary_candidate.display_rect = primary_rect_;
+ primary_candidate.format = gfx::BufferFormat::BGRX_8888;
overlay_params_.push_back(primary_candidate);
ui::OverlayCheck_Params overlay_candidate;
overlay_candidate.buffer_size = overlay_rect_.size();
overlay_candidate.display_rect = overlay_rect_;
overlay_candidate.plane_z_order = 1;
+ overlay_candidate.format = gfx::BufferFormat::BGRX_8888;
overlay_params_.push_back(overlay_candidate);
scoped_refptr<ui::DrmDevice> drm =
window_->GetController()->GetAllocationDrmDevice();
for (const auto& param : overlay_params_) {
scoped_refptr<ui::ScanoutBuffer> scanout_buffer = buffer_generator_->Create(
- drm, ui::GetFourCCFormatForFramebuffer(param.format),
+ drm, ui::GetFourCCFormatFromBufferFormat(param.format),
param.buffer_size);
ui::OverlayPlane plane(std::move(scanout_buffer), param.plane_z_order,
param.transform, param.display_rect, param.crop_rect,
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_overlay_validator.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698