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)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 22 Sep 2019 21:53:17 +0000 (06:53 +0900)
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: If824c7bba8bbd9c93dff8693fc72deac1fa4c893


No differences found