Do not create visual when URL or array is empty 62/271862/5
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 2 Mar 2022 13:34:48 +0000 (22:34 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 14 Mar 2022 04:44:18 +0000 (13:44 +0900)
commit8eb657e8cc2c66a09b45aab293a983459b396b33
tree366336dfdb0aa5641e3a020f43d485230c656110
parent340a0bbd8c7e93bc7a8e7c25b7ff44bb0b0af196
Do not create visual when URL or array is empty

When we try to create ImageVisual with empty string, it will be failed.
But when we try to create AnimatedImageVisual with empty string,
it will try to create new AnimatedImageVisual.

AnimatedImageVisual is weak when mFrameCount is zero.
So we try to guard that case before creation-level.

Moreover, we also don't create visual for SVG, N_PATCH, ANIMATED_VECTOR_IMAGE

Change-Id: Ibd7a3db825473958bbe51e6fb909572464b21da6
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
automated-tests/src/dali-toolkit-internal/utc-Dali-DebugRendering.cpp
dali-toolkit/internal/visuals/visual-factory-impl.cpp