NEW284279
[TextureMapper] Avoid stencil use in clipping
https://bugs.webkit.org/show_bug.cgi?id=284279
Summary [TextureMapper] Avoid stencil use in clipping
Jani Hautakangas
Reported 2024-12-09 00:23:57 PST
Stencil usage can often be avoided by rendering only the relevant portions of a layer or texture. This can be achieved by carefully setting up texture coordinates and vertex positions to render only the desired section of the texture. To implement this, shaders need to be updated, and new antialiasing logic must be introduced to allow for selective antialiased edges. It's essential to ensure that cutting edges are not antialiased, as this could affect the visual fidelity of the clipping. This optimization will reduce stencil usage and significantly improve performance, particularly on low-end devices like the Raspberry Pi 3, where computational resources are limited.
Attachments
Note You need to log in before you can comment on or make changes to this bug.