Closed Bug 2092854 Opened 16 days ago Closed 12 days ago

[wpt-sync] Sync PR 64645 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=324539

Categories

(Core :: Web Painting, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
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 renderer

Skia 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>

Component: web-platform-tests → Web Painting
Product: Testing → Core

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

GitHub PR Head
GitHub PR Base

Status: NEW → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.