Reduce API call of FillFrame at gif-loading. 11/273211/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 31 Mar 2022 14:22:19 +0000 (23:22 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 31 Mar 2022 14:22:19 +0000 (23:22 +0900)
commite17405df95f2a2671dabd8a7d16cf1a0f27e00cb
tree3180f8ad1eafdace5d840a2be0fe6446ed873ae2
parent3ff3d757a67b27cd14340e6fbd1cc4035d2cde8c
Reduce API call of FillFrame at gif-loading.

If previous frame's rect area is EQUAL with current frame's rect area,
we don't need to call FillFrame.
Because we will iterate that rect area in DecodeImage function.

In that case, Instead of call FillFrame, We just notify DecodeImage
Should fill background as specific color.

It will reduce most of case. Actually, If first frame, we access each pixel
Twice previous. This patch will reduce that access count.

Change-Id: Ica5fe669b6b553dbe55f054da5471dae865595a1
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/imaging/common/gif-loading.cpp