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:
Hermet Park 2024-07-21 14:29:10 +09:00 committed by Hermet Park
parent a47839a40b
commit db889e1835
2 changed files with 12607 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -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.