[wpt-sync] Sync PR 50670 - Align pixels through render surfaces when possible
Categories
(Core :: Web Painting, task, P4)
Tracking
()
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}
Assignee | ||
Updated•12 days ago
|
Assignee | ||
Comment 1•11 days ago
|
||
Assignee | ||
Comment 2•11 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
Description
•