• Malay Keshav's avatar
    viz: Use list instead of bounding box for backdrop filter bounds · dbe1ce1d
    Malay Keshav authored
    The surface aggregator when computing the damage rect for a surface
    tree, computes a bounding box of all the render pass with backdrop
    moving filter. It then uses this bounding box to increase the damage
    rect of the root render pass. This causes a larger than needed damage
    rect to be set. This patch changes the bounding box logic to that of a
    list of rects. The damage rect is then expanded based on if it
    intersects with a rect in that list.
    
          Also added unittests.
    
    Bug: 1031914
    Test: Manually tested that partial swap now gives correct damage rect.
    Change-Id: I4eb8ff29170ddebfa8be79e9fd885551828af0e3
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1965475
    Commit-Queue: Malay Keshav <malaykeshav@chromium.org>
    Reviewed-by: default avatarkylechar <kylechar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#726083}
    dbe1ce1d
surface_aggregator_unittest.cc 265 KB