lottie/model: keep a stat of model for future local allocator.
authorsub.mohanty@samsung.com <sub.mohanty@samsung.com>
Sun, 18 Aug 2019 09:24:36 +0000 (18:24 +0900)
committerHermet Park <hermetpark@gmail.com>
Tue, 17 Sep 2019 01:23:15 +0000 (10:23 +0900)
commitfc134683f19fc193deff57ef411d8c6337577267
tree8aad2b7330da7b7ae81203fa6f518ea3655c97f8
parentb21978cc7b81e4daa253b34bfdca07263cb8872d
lottie/model: keep a stat of model for future local allocator.
In a complex lottie resource layer counts can exceed above 100 or in
some cases 1000. As in each frame rendering we visit the whole tree
allocating all of them using a local allocator will speed up the tree
visit as well as creation and destruction.

As the number of layer objects are fixed in a resource we can make use of
a dumb monotonic allocator to allocate all objects in one place.

Change-Id: I6c6c8ea83c8d6382609ea58b6640c033f7fd51f3
src/lottie/lottiemodel.cpp
src/lottie/lottiemodel.h
src/lottie/lottieparser.cpp