[Tizen] Remove cubemap cache temperary + Fix bug when Uploaded PixelData resue after... 64/304264/1 accepted/tizen/8.0/unified/20240122.175520
authorEunki Hong <eunkiki.hong@samsung.com>
Sat, 13 Jan 2024 00:28:27 +0000 (09:28 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 15 Jan 2024 02:33:54 +0000 (11:33 +0900)
commit2e9c2e324196485d63bdb2f588a04fa4485e9aff
tree6bffa18bdb2055588092b33d904b2f7d8be00615
parentb2b665f2b5be55ff8313f1a5a2131942e1d06388
[Tizen] Remove cubemap cache temperary + Fix bug when Uploaded PixelData resue after Texture GC

If we create NewPixelDataWithReleaseAfterUpload and Upload to texture,
and if that texture reference count become 1 and GC,
the key of PixelData is not valid anymore.

To avoid this cases, Let we collect all PixelData container if some texture removed.
And also, since PixelData could be key of Texture cache, we should check the
reference count is less than 2.

+

Since current cubemap cache not works well reasonable, just remove it.
We will reopen it after we implement PixelDataList cache system again.

+

Print more log information if we need.

Change-Id: I6693ceab9b03cc20e1c6a42282ef39af38344e27
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
automated-tests/src/dali-scene3d/utc-Dali-EnvironmentDefinition.cpp
dali-scene3d/internal/common/environment-map-load-task.cpp
dali-scene3d/internal/common/image-resource-loader.cpp
dali-scene3d/internal/common/image-resource-loader.h
dali-scene3d/internal/model-components/model-primitive-impl.cpp
dali-scene3d/public-api/loader/environment-definition.cpp
dali-scene3d/public-api/loader/environment-map-data.cpp
dali-scene3d/public-api/loader/resource-bundle.cpp