thorvg/src/lib/gl_engine
Hermet Park f1fe36d8f6 common sw_engine: optimize single rectangle ClipPath.
If ClipPath is a singular rectangle,
we don't need to apply this to all children nodes to adjust rle span regions.

Rather than its regular sequence,
we can adjust render region as merging viewport that is introduced internally,

All in all,
If a Paint has a single ClipPath that is Rectangle,
it sets viewport with Rectangle area that viewport is applied to
raster engine to cut off the rendering boundary.

In the normal case it brings trivial effects.
but when use SVGs which has a viewbox, it could increase the performance
up to 10% (profiled with 200 svgs rendering at the same time)

Note that, this won't be applied if the Paint has affine or rotation transform.

@Issues: 294
2021-03-26 17:10:35 +09:00
..
meson.build changed file permission 2020-09-08 20:29:24 +09:00
tvgGlCommon.h updated copyright 2021-03-23 14:31:58 +09:00
tvgGlGeometry.cpp updated copyright 2021-03-23 14:31:58 +09:00
tvgGlGeometry.h updated copyright 2021-03-23 14:31:58 +09:00
tvgGlGpuBuffer.cpp updated copyright 2021-03-23 14:31:58 +09:00
tvgGlGpuBuffer.h updated copyright 2021-03-23 14:31:58 +09:00
tvgGlProgram.cpp updated copyright 2021-03-23 14:31:58 +09:00
tvgGlProgram.h updated copyright 2021-03-23 14:31:58 +09:00
tvgGlPropertyInterface.cpp updated copyright 2021-03-23 14:31:58 +09:00
tvgGlPropertyInterface.h updated copyright 2021-03-23 14:31:58 +09:00
tvgGlRenderer.cpp common sw_engine: optimize single rectangle ClipPath. 2021-03-26 17:10:35 +09:00
tvgGlRenderer.h common sw_engine: optimize single rectangle ClipPath. 2021-03-26 17:10:35 +09:00
tvgGlRendererProperties.h updated copyright 2021-03-23 14:31:58 +09:00
tvgGlRenderTask.cpp updated copyright 2021-03-23 14:31:58 +09:00
tvgGlRenderTask.h updated copyright 2021-03-23 14:31:58 +09:00
tvgGlShader.cpp updated copyright 2021-03-23 14:31:58 +09:00
tvgGlShader.h updated copyright 2021-03-23 14:31:58 +09:00
tvgGlShaderSrc.cpp updated copyright 2021-03-23 14:31:58 +09:00
tvgGlShaderSrc.h updated copyright 2021-03-23 14:31:58 +09:00