[Ozone/Wayland]Send background_color only if not solid_color buffer
This condition is unintentionally dropped when converting from TypeConverter to Struct Traits. Change-Id: Iaf974d6f20c45ef84e18c700cb3032370b4c051f Bug: 1325042 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3646258 Reviewed-by: Maksim Sisov <msisov@igalia.com> Commit-Queue: Kramer Ge <fangzhoug@chromium.org> Cr-Commit-Position: refs/heads/main@{#1003890}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
a5affac663
commit
52596c6d1a
@ -28,7 +28,9 @@ WaylandOverlayConfig::WaylandOverlayConfig(const gfx::OverlayPlaneData& data,
|
||||
: gfx::GpuFenceHandle()),
|
||||
priority_hint(data.priority_hint),
|
||||
rounded_clip_bounds(data.rounded_corners),
|
||||
background_color(data.color) {}
|
||||
// Solid color quads are created as wl_buffers. Though, some overlays may
|
||||
// have background data passed.
|
||||
background_color(data.is_solid_color ? absl::nullopt : data.color) {}
|
||||
|
||||
WaylandOverlayConfig& WaylandOverlayConfig::operator=(
|
||||
WaylandOverlayConfig&& other) = default;
|
||||
|
Reference in New Issue
Block a user