lottie/vector: take the fast path in addPath() api only when path is null. 14/194114/2
authorsubhransu mohanty <sub.mohanty@samsung.com>
Thu, 29 Nov 2018 06:38:40 +0000 (15:38 +0900)
committerHermet Park <chuneon.park@samsung.com>
Fri, 30 Nov 2018 04:10:36 +0000 (04:10 +0000)
commit8706eca90527cf2a7f4e05b3a6d645d194b7fc5c
tree636c05a8091474c0f1bc16dc72ea2db1ff5f63ed
parent9e307312f752f4c4c35b1bb8d566aaf4000f0470
lottie/vector: take the fast path in addPath() api only when path is null.
This patch is to avoid unnecessary allocation and deallocation when the path is empty but not null during addPath

Change-Id: Iab3820419257fbbecaddc93d73e5868b1889e6c5
src/vector/vpath.h