bootanimation: do not create texture for parts with count=1
When bootanimation contains part that is played only once, there is no need to create a separate texture for its frames. Such an approach allows to reduce memory consumption for typical use case of such an animations, when a part consists of a lot of frames played only once. Actually, it was already implemented earlier, but part of it was lost in 'd711ac48'. Moreover, the remained part leads to memory leak in current implementation on BootAnimation.cpp:1712. Test: play bootanimation with part.count=1 and a lot of frames, and check memory consumption. Change-Id: If3a0fa890f6f9e7abc0db2fe96b5635a1663fb8a Signed-off-by: Oleg Lyovin <ovlevin@sberdevices.ru>
Loading
Please register or sign in to comment