Closed Bug 1947915 Opened 12 days ago Closed 6 days ago

[wpt-sync] Sync PR 50670 - Align pixels through render surfaces when possible

Categories

(Core :: Web Painting, task, P4)

task

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 50670 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/50670
Details from upstream follow.

Xianzhu Wang <wangxianzhu@chromium.org> wrote:

Align pixels through render surfaces when possible

This eliminates the misalignment between textures under the render
surface and the screen pixels, when possible.

If a render surface has a non-integral translation, the fraction is
subtracted from the render surface's draw transform to make the
translation integral, and the fraction will be passed to contributing
render surfaces and layers:

  • For a contributing render surface, the fraction will be added
    before the contributing surface's draw transform calculated from
    paint properties;
  • For a layer, the fraction will be added before the layer's draw
    transform, and the fraction of the result draw transform will be
    used to calculate the raster translation (existing logic to align
    pixels in layers with non-integral translation).

Bug: 40892376
Change-Id: Iac7578b0150f43f6136818ba699a8a3ff82f5127
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6043172
Reviewed-by: Vladimir Levin \<vmpstr@chromium.org>
Commit-Queue: Xianzhu Wang \<wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1419595}

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

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/99bb3448632c [wpt PR 50670] - Align pixels through render surfaces when possible, a=testonly
Status: NEW → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.