Open Bug 1493068 Opened Last year Updated 3 months ago
Gecko often creates invisible or inefficient gradient display items
Open https://en.wikipedia.org/wiki/Cricket, and scroll to the bottom of the page, where the references are. Take a WR capture, and open the scene-1-0.ron file in a text editor. There are a large number of gradients that contain stops with alpha 0, that can't contribute to the scene. WR will handle this case internally soon, but if Gecko can detect this it can save on display list (de)serialization time by eliminating it from the DL completely.
See Also: → https://github.com/servo/webrender/pull/3100
Another case that Gecko seems to create on some pages is a gradient with 2 stops, where the colors are equal. We could detect this early and draw it as a rectangle instead.
You need to log in before you can comment on or make changes to this bug.