Add support for nearest filtered scaled composites to SWGL
Categories
(Core :: Graphics: WebRender, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: gw, Assigned: lsalzman)
References
Details
Attachments
(3 files)
In the SWGL compositor, it looks like we don't support the case of compositing a scaled surface with alpha and nearest filtering yet. See [1] and the handling of opaque
above that.
To reproduce, apply the attached patch (which just allows non-opaque compositor surfaces to set the PREFER_COMPOSITOR_SURFACE
flag), and then run:
./mach reftest --enable-webrender --setpref="layout.css.devPixelsPerPx=1.0" --setpref="gfx.webrender.software=true" layout/reftests/canvas/image-rendering-test.html
This is the only remaining blocker I'm currently aware of to enabling non-opaque compositor surfaces everywhere.
[1] https://searchfox.org/mozilla-central/source/gfx/wr/swgl/src/composite.h#432
Reporter | ||
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 3•4 years ago
|
||
bugherder |
Assignee | ||
Comment 4•4 years ago
|
||
With the copying and scaling code in one place, it gets a bit hard to see in the profile which one
is being used. This just moves some of the dispatching between the two up a level so they show up as
different functions in a profile.
Comment 6•4 years ago
|
||
bugherder |
Description
•