You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Only Build Display Items for Background if Really Necessary #19672
There are at least two cases where Display Items for backgrounds are emitted when they are not needed for rendering:
Lower background layer is completely covered by opaque upper layer.
A background image or gradient where at least one size is equal zero.
I am not sure what the performance impact of both optimizations would be. While it is very common that a gradient and a solid fallback color are specified (case 1.) there are some optimizations on the webrender side to avoid actual painting by the GPU.
Activity
mrobinson commentedon May 22, 2025
I think this makes less sense for the moment now that WebRender handles culling and we don't build an intermediate display list.