版本说明以英文撰写。
GPU shadows and conic gradients: the fallback set shrinks
Two more paint primitives move onto the GPU, so the unified renderer hands fewer things back to the software path. Outset box shadows - the soft drop shadow under every card and button - now rasterise on the device: a shader reproduces the software renderer's exact rounded-rect distance field, blur falloff, and the way it carves out the element's own box, matching within a level or two. Conic gradients join linear and radial on the GPU too. With shadows and all three gradient kinds now on the device, a real card - background, border, gradient, shadow, and text - draws almost entirely on the GPU, with only transforms, clips, and filters still on software. The GPU aspect moves 27 to 31. The overall holds at 57.
改动内容
3 项改动- Web API 与 DOMOutset box-shadows rasterise on the GPU: the fragment shader matches the software rounded-rect distance field, the smoothstep blur falloff over the blur radius, and the border-box knockout - including the software path's double application of the shadow alpha - within one to two levels per channel.
- 渲染Conic gradients join linear and radial on the GPU, sharing the same colour-stop buffer; the shader computes the clockwise-from-top sweep angle exactly as the software path does, within one level per channel.
- Web API 与 DOMBoth are wired into the unified renderer, so a real card - background, border, gradient, shadow, and text - now draws almost entirely on the device, leaving only transforms, clips, and filters on the software-fallback layer.