[meta] WebRender dithering support
Categories
(Core :: Graphics: WebRender, task)
Tracking
()
People
(Reporter: sotaro, Unassigned)
References
(Depends on 3 open bugs, )
Details
(Keywords: meta)
WebRender dithering was disabled by the following
https://github.com/servo/webrender/pull/1042
There are a number of WPT/CSS tests that break with the current
gradient dither code. For now, disable dither on gradients so that
we can land a WR update in Servo. We can re-enable the dither
once the reftest bug is fixed.
Reporter | ||
Comment 1•3 months ago
•
|
||
Chromium tries to enable dither by calling PaintFlags::() or SkPaint::setDither().
They are called in the followings
- [1] RasterBufferProvider::PlaybackToMemory()
- Dither is set only when format is SinglePlaneFormat::kRGBA_4444)
- [2]DecodingImageGenerator::GetPixels()
- Dither is set only when it is necessary.
- [3]Gradient::ApplyToFlags()
- gradients are always dithered.
[1] and [2] seems not related to WebRender. Only [3] seems necessary for WebRender.
3 Types of gradients are created related to [3] by the followings.
And Skia could disable dither with the following checks
Reporter | ||
Comment 2•3 months ago
|
||
WebRender has dither implementation, though it is disabled. It was originally added by https://github.com/servo/webrender/pull/1042.
Then it was refactored by Bug 1688323.
Radial and conic gradients were added by Bug 1687977.
WebRenderOptions::enable_dithering seems care only for linear gradient for now.
Reporter | ||
Comment 3•3 months ago
•
|
||
Test failure seems not happen by enabling dither only with hardware WebRender.
https://treeherder.mozilla.org/jobs?repo=try&revision=410ed038a6c6f9d2a1a529afb71899f48526a60f
Reporter | ||
Updated•2 months ago
|
Reporter | ||
Updated•2 months ago
|
Reporter | ||
Comment 4•1 month ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #3)
Test failure seems not happen by enabling dither only with hardware WebRender.
https://treeherder.mozilla.org/jobs?repo=try&revision=410ed038a6c6f9d2a1a529afb71899f48526a60f
It was Bug 1974916.
Reporter | ||
Comment 5•1 month ago
|
||
Current test failure status.
https://treeherder.mozilla.org/jobs?repo=try&revision=574057a7a59d93c8a47b1cf62a20321179803352
Description
•