Bug
1741276 [wpt PR 31635] - Do not skip compositing update for non-animation transform changes, a=testonly
Automatic update from web-platform-tests
Do not skip compositing update for non-animation transform changes
Properties like "will-change: transform" are direct compositing reasons
which let us skip raster when properties change. Usually, we still need
to update compositing when directly-composited transforms change because
overlap can change. An exception to this is animations which assume
worst-case overlap in |PendingLayer::VisualRectForOverlapTesting|. This
patch stops skipping the compositing update for non-animation transform
changes.
An alternative approach of assuming worst-case overlap for will-change
transform was investigated in https://crrev.com/c/
3280439 but this has
two downsides: complexity and compositing memory (a good example is
composited-scroll-overlap-test.html). Before CompositeAfterPaint, we
would need to run compositing as well, so the approach in this patch
has precedent. We may want to expand the visual rect for
will-change: transform in the future, for performance parity with
animations.
Bug:
1267689
Change-Id: I9812426e9a159bdbe44476390e10fe53478f9ccc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
3282945
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#941904}
--
wpt-commits:
22bf1f9e0ed1f729fb91632c39b2c8d68844f503
wpt-pr: 31635