From: subhransu mohanty Date: Mon, 3 Sep 2018 06:49:10 +0000 (+0900) Subject: lottie/render: don't try to render invisible layer. X-Git-Tag: submit/tizen/20180917.042405~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F188223%2F1;p=platform%2Fcore%2Fuifw%2Flottie-player.git lottie/render: don't try to render invisible layer. Change-Id: I2544b6a04d07eaf155fbddc405952e739b14eaf1 --- diff --git a/src/lottie/lottieitem.cpp b/src/lottie/lottieitem.cpp index 0681437..03336f2 100644 --- a/src/lottie/lottieitem.cpp +++ b/src/lottie/lottieitem.cpp @@ -159,6 +159,8 @@ VRle LOTMaskItem::rle() void LOTLayerItem::render(VPainter *painter, const VRle &inheritMask, const VRle &inheritMatte, LOTLayerItem *matteSource) { + if (!visible()) return; + VRle matteRle; if (matteSource) { mDrawableList.clear(); @@ -348,6 +350,8 @@ void LOTCompLayerItem::updateStaticProperty() void LOTCompLayerItem::render(VPainter *painter, const VRle &inheritMask, const VRle &inheritMatte, LOTLayerItem *matteSource) { + if (!visible()) return; + VRle matteRle; if (matteSource) { mDrawableList.clear();