4 ms·
> only used for hardware-accelerating video decoding and such Not true. GPU layer compositing is implemented in all modern engines. That's how the CSS 3d trans
by floatboth 10y ago
> only used for hardware-accelerating video decoding and such
Not true. GPU layer compositing is implemented in all modern engines. That's how the CSS 3d transforms work. That's why the translateZ(0) hack existed to speed up animations (it created a new GPU layer. Now there's an official property for this, will-change.)
WebRender (used in Servo) goes a step further — it's not just compositing, it's actually rendering the colors, gradients, borders, shadows, rounded corners and so on in OpenGL. Look at the shaders: https://github.com/servo/webrender/tree/master/webrender/res https://github.com/servo/webrender/tree/master/webrender/res