Pass root plane info to gl::Presenter
GLSurfaceEGLSurfaceControl needs this info and currently has to guess
using the buffer. This allows removing
ScopedHardwareBufferFenceSync::is_video
Bug: 40288143
Change-Id: I5bac10304528e9528190b08296b909fa47a9e4b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5324138
Commit-Queue: Bo Liu <[email protected]>
Reviewed-by: Michael Spang <[email protected]>
Reviewed-by: Yaron Friedman <[email protected]>
Reviewed-by: Vasiliy Telezhnikov <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1265452}
diff --git a/ui/gfx/overlay_plane_data.cc b/ui/gfx/overlay_plane_data.cc
index 4af18cd..ad0207d 100644
--- a/ui/gfx/overlay_plane_data.cc
+++ b/ui/gfx/overlay_plane_data.cc
@@ -22,6 +22,7 @@
const std::optional<HDRMetadata>& hdr_metadata,
std::optional<SkColor4f> color,
bool is_solid_color,
+ bool is_root_overlay,
std::optional<Rect> clip_rect)
: z_order(z_order),
plane_transform(plane_transform),
@@ -36,6 +37,7 @@
hdr_metadata(hdr_metadata),
color(color),
is_solid_color(is_solid_color),
+ is_root_overlay(is_root_overlay),
clip_rect(clip_rect) {}
OverlayPlaneData::~OverlayPlaneData() = default;