forked from servo/webrender
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1697346 - Remove snapping of inflated surface rects. r=aosmond,gf…
…x-reviewers When an offscreen surface establishes a raster root, this code was causing incorrect snapping / rounded (even on non-inflated surfaces), resulting in test failures in some cases. In theory, this should not be necessary, since scroll offsets are snapped, and primitives are already snapped during scene building. Additionally, the picture surface allocation code expects surfaces with fractional offsets and handles this case (by rounding out the allocation size, and creating a UV set that samples from the subpixel offsets of the surface). In practice, there may be content that relies on this which isn't tested by CI, so let's land this as a separate patch and see if it causes any real-world content regressions, before landing the changes that rely on this. Differential Revision: https://phabricator.services.mozilla.com/D107768 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/7647c3e90bedc40aca04283df9c74ec9da52ef18
- Loading branch information
Glenn Watson
committed
Mar 11, 2021
1 parent
43ec2c3
commit 8ad8c25
Showing
12 changed files
with
23 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
platform(linux,mac) == snap.yaml snap.png | ||
== transform.yaml transform.png | ||
platform(linux,mac) == preserve-3d.yaml preserve-3d.png | ||
fuzzy(128,200) == subpixel-raster-root.yaml subpixel-raster-root-ref.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
root: | ||
items: | ||
- | ||
bounds: [0, 111, 200, 1] | ||
type: rect | ||
color: green |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Verify that we don't incorrectly snap surface rects with fractional pixel offsets | ||
--- | ||
root: | ||
items: | ||
- | ||
type: "stacking-context" | ||
transform: translate(0, 100.5, 0) | ||
transform-style: preserve-3d | ||
items: | ||
- | ||
bounds: [0, 10.5, 200, 1] | ||
type: rect | ||
color: green |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.