Bug 1676495 [wpt PR 26475] - Improve will-change:transform raster scale adjustment...
commit54ccd879ca2f60b16997b0fba578ea4edfcead2a
authorXianzhu Wang <wangxianzhu@chromium.org>
Wed, 11 Nov 2020 10:28:37 +0000 (11 10:28 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 11 Nov 2020 16:39:24 +0000 (11 16:39 +0000)
tree019d27de45138d924aa0654f5b35dc896bb2de97
parent759e7db1fa258df6973aaff9175e1928ef130959
Bug 1676495 [wpt PR 26475] - Improve will-change:transform raster scale adjustment, a=testonly

Automatic update from web-platform-tests
Improve will-change:transform raster scale adjustment

This fixes the issue of too big scale for will-change:transform layers
by
- Partly reverting crrev.com/c/2447650 to apply the change on tiny
scales only. When the ideal scale is not tiny, use the original policy
to clamp minimum scale to the native scale.
- Increasing kMinScaleRatioForWillChangeTransform from 0.1 to 0.25 to
reduce memory and number of tiles when the scale is bigger than ideal,
from 100x to 16x in worst cases.

Bug: 1146393
Change-Id: Ida5720f5126648c2fad0b9921781714fa006d346
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2527733
Reviewed-by: vmpstr <vmpstr@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825998}

--

wpt-commits: 4cf34e3fc5d4d673dee780015ebf194db71fd500
wpt-pr: 26475
testing/web-platform/tests/css/css-transforms/change-scale-wide-range-ref.html [new file with mode: 0644]
testing/web-platform/tests/css/css-transforms/change-scale-wide-range.html [new file with mode: 0644]
testing/web-platform/tests/css/css-transforms/huge-length-tiny-scale-ref.html [new file with mode: 0644]
testing/web-platform/tests/css/css-transforms/huge-length-tiny-scale.html [new file with mode: 0644]