(Scene3D) Ensure remove image-resource-loader cache when app terminated 20/302020/4
authorEunki Hong <eunkiki.hong@samsung.com>
Wed, 29 Nov 2023 14:02:08 +0000 (23:02 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Fri, 1 Dec 2023 05:36:25 +0000 (14:36 +0900)
commit8f02c39f701c59666e23314a2d90347b86081daf
tree7de8074dfa14ba165622de620329c91ac71c5a21
parente671e71c103c00af7b036b3bd2447263074daf58
(Scene3D) Ensure remove image-resource-loader cache when app terminated

Since ImageResourceLoader use static global value internally,
it might have some problem when we use OffscreenApplication multiple time.

Since even Dali::Application destroyed, the static value can be alived.
At this time, If we create new Dali::Application one more time, the cache
system break down.

To ensure we follow up the cache system, let we connect the signal to
LifecycleController, and then delete self.
It will ensure we can re-create this cache after Dali::Application recreated.

Change-Id: I6178a91dfff2a435eb95d11e7ca8ef7479c125ed
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-lifecycle-controller.cpp
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-lifecycle-controller.h
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-test-application.cpp
dali-scene3d/internal/common/image-resource-loader.cpp
dali-scene3d/internal/common/image-resource-loader.h
dali-scene3d/internal/common/model-cache-manager.cpp