[wpt-sync] Sync PR 64645 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=324539
Categories
(Core :: Web Painting, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64645 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64645
Details from upstream follow.
Alejandro G. Castro <alex@igalia.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=324539
WebKit export from bug: [<!---->WPE]<!---->[<!---->GTK]<!----> Use distance fields for small paths in the GPU renderer
<pre>
[WPE][GTK] Use distance fields for small paths in the GPU rendererSkia keeps two different atlas caches for small paths. The bitmap key is
built from the shape key, the upper 2x2 of the CTM and 8 bits each of the
subpixel translation, while the distance field key only holds the shape key
and the power of two dimension the field was generated at. Any path drawn
under an animated transform therefore misses the bitmap atlas on every frame
and pays a CPU re-raster, a texture upload and the atlas work that follows,
but the distance field entry is reused.Skia already selects distance fields unconditionally on Android for this
reason. We added support for Skia to allow picking the behaviour when
compiling, now it is part of the library and can be enabled with the
build flag: SK_GANESH_SMALL_PATH_DISTANCE_FIELD_ALWAYS.This improve Suits for MotionMark in rpi4 and desktop, we are still not
sure the effect everywhere so we activate it to verify what are we
getting.The patch just adds the build option in the compilation.
Apparently distance field rasterization is not pixel identical to the bitmap
atlas. Edge coverage differs slightly, and that is enough to break nine
reftests. Updated the tolerances.Upstream has its own fuzzy tolerance for css/css-transforms/transform-input-017.html, so this raises each range to cover both.
WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=324539">https://bugs.webkit.org/show_bug.cgi?id=324539</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/321588@main">https://commits.webkit.org/321588@main</a>
</pre>
| Assignee | ||
Updated•16 days ago
|
| Assignee | ||
Comment 1•16 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=119829
| Assignee | ||
Comment 2•16 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
PASS: 1
Chrome
PASS: 1
Safari
PASS: 1
Links
Comment 4•12 days ago
|
||
| bugherder | ||
Description
•