mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
renderer: quick skip rendering if the opacity is zero
This also resolves a corner case bug introduced by
lottie render pooling: f06127ab93
This commit is contained in:
parent
a47839a40b
commit
db889e1835
2 changed files with 12607 additions and 0 deletions
12605
examples/resources/lottie/expressions/17084.json
Normal file
12605
examples/resources/lottie/expressions/17084.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -235,6 +235,8 @@ bool Paint::Impl::translate(float x, float y)
|
||||||
|
|
||||||
bool Paint::Impl::render(RenderMethod* renderer)
|
bool Paint::Impl::render(RenderMethod* renderer)
|
||||||
{
|
{
|
||||||
|
if (opacity == 0) return true;
|
||||||
|
|
||||||
Compositor* cmp = nullptr;
|
Compositor* cmp = nullptr;
|
||||||
|
|
||||||
/* Note: only ClipPath is processed in update() step.
|
/* Note: only ClipPath is processed in update() step.
|
||||||
|
|
Loading…
Add table
Reference in a new issue