From: Eunki, Hong Date: Thu, 21 Apr 2022 07:34:31 +0000 (+0900) Subject: Cache animated image's frame index X-Git-Tag: dali_2.1.23~14^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=dd5c89d78423e23ca27708cabfd0d88ce798b294;hp=dd5c89d78423e23ca27708cabfd0d88ce798b294 Cache animated image's frame index There is no reason to multiple decoding for same-image's same-frame loading. It just increase our memory useage and CPU usage. This patch cache animated image's frame index so we can re-use already decoded frame informations. + For more, Due to the animated image decoding can hold big amount of observers in one frame, we need to reduce runtime of NotifyObservers API. This patch also reduce NotifyObservers time complexity from O(N^2) to O(N). Note : We can't add additional observer due to the mQueueLoadFlag flag is true. Change-Id: I829704c638ce7b6a5feca13cc1bcf75b4bd9e35e Signed-off-by: Eunki, Hong ---