Remove external resources lazy.
Since we don't increase & decrease the reference count of ExternalResources during
LoadTexture() API, It can be happened that some TextureId validation failed.
For example of dali://2,
ImageUrl::New() // refcount : 1
ImageVisual::Initialize() // refcount : 2
~ImageVisual
- RemoveExternalTexture("dali://2"); // refcount : 1
- RequestRemove(2) // still refcount : 1
~ImageUrl // now, refcount : 0
ImageVisual()
LoadTexture() //< New generated texture will use TextureId as 2, with refcount 1
== Process() ==
Remove(2) // Now, TextureId 2's refcount is 0! load cancel.
This patch make we only remove normal texture cache, instead of ExternalResource
Change-Id: Ia735770a02c231fa79af40a1e5926aab11358b71
Signed-off-by: jmm <j0064423.lee@samsung.com>