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
parent bd0a7725e0
commit 4a447abaae

View file

@ -235,6 +235,8 @@ bool Paint::Impl::translate(float x, float y)
bool Paint::Impl::render(RenderMethod* renderer)
{
if (opacity == 0) return true;
Compositor* cmp = nullptr;
/* Note: only ClipPath is processed in update() step.