[TTVD] Fix damage rect of forced overlay candidate 04/318404/3
authorJakub Gajownik <j.gajownik2@samsung.com>
Tue, 24 Sep 2024 17:08:13 +0000 (19:08 +0200)
committerBot Blink <blinkbot@samsung.com>
Fri, 27 Sep 2024 17:49:07 +0000 (17:49 +0000)
Between M108 and M120 in upstream was change about
coordinate space how damage rect is expressed.
Reference: https://crrev.com/c/4520453

This change adapts Tizen forced overlay mechanism, so it
also follows new approach. Without it some videos could
be rendered at wrong position or with invalid size.

Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-587
Change-Id: I5436d22affc2ed18074116ec209a27c98a5f195b
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
components/viz/service/display/tizen_forced_overlay_helper.cc

index 0684972857e1835dd1fc1cf36c7e87e44c815a59..6d93898b60415e5def9b85d9fb8ae67f91151cf6 100644 (file)
@@ -88,7 +88,7 @@ bool TizenForcedOverlayHelper::UpdateForcedOverlaysImpl(
         return false;
       }
 
-      candidate.damage_rect = gfx::RectF(it->visible_rect);
+      candidate.damage_rect = *target_quad;
       candidate.display_rect = *target_quad;
       candidates_->push_back({it, candidate, nullptr});
       render_pass->ReplaceExistingQuadWithSolidColor(it, SkColors::kTransparent,