thorvg/src
Hermet Park 01f4d6304a sw_engine: fixed a rendering bug when the invalid clipper is applied.
Shapes with boundaries outside the rendering area are ignored as non-visible.
The issue arises when such a shape serves as a clipper.
The expected behavior is for the entire clipee to be cut out,
but previously, the clipee remained fully visible as if no clip was applied.

The fix identifies these clippers and skips rendering clipees.

Please note that we can skip rendering at the Paint update stage
if the clipper's viewport is outside the canvas.
This optimization can improve performance, but only for this specific case.
The downside of the approach is that it disrupts multi-processing for clipper updates.
As a result, that approach was discarded.

issue: https://github.com/thorvg/thorvg/issues/3003
issue: https://github.com/thorvg/thorvg/issues/2684

Co-Authored-By: Mira Grudzinska <mira@lottiefiles.com>
2024-12-14 01:30:56 +09:00
..
bindings wasm: handle WebGPU initialization failure case 2024-12-13 14:53:55 +09:00
common common: inlist code refactoring 2024-12-02 15:15:35 +09:00
loaders lottie: support Layer Effect Fill type 2024-12-12 18:50:33 +09:00
renderer sw_engine: fixed a rendering bug when the invalid clipper is applied. 2024-12-14 01:30:56 +09:00
savers API: Replace the Canvas::clear() API with Canvas::remove() & draw() 2024-12-10 11:59:46 +09:00
meson.build infra: --shutdown the unkown-pragmas warning 2024-10-04 02:50:19 +09:00