lottie/render: Added custome future/promise to optimize the heap allocation. 12/195312/3
authorsubhransu mohanty <sub.mohanty@samsung.com>
Wed, 12 Dec 2018 10:47:23 +0000 (19:47 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 13 Dec 2018 06:26:13 +0000 (06:26 +0000)
commitfb6bf7bef90771997f6c67c2297f9d03a4ada45a
treeafeecb00e515d42f5f63b804ea2d69ca1e5a045b
parent7e774a7bcdd00a60b54a82b3869d916c24be98c3
lottie/render: Added custome future/promise to optimize the heap allocation.
As every future/promise shared data allocates in heap there was
lot of heap allocation when we generate span info using RleThread pool.
this custome future/promise will allocate 1 shared resource per drawable and
will reuse for all subsequent span info request for that drawable.

This reduced the number of heap allocation drastically and improves render performance.

Change-Id: Ic480030e7c36ad7ab730683e71417de026220297
src/lottie/lottieitem.cpp
src/lottie/lottieitem.h
src/vector/vdrawable.cpp
src/vector/vdrawable.h
src/vector/vraster.cpp
src/vector/vraster.h