- case Toolkit::Visual::ANIMATED_IMAGE:
- {
- Property::Value* imageURLValue = propertyMap.Find(Toolkit::ImageVisual::Property::URL, IMAGE_URL_NAME);
- std::string imageUrl;
- if(imageURLValue)
- {
- if(imageURLValue->Get(imageUrl))
- {
- if(!imageUrl.empty())
- {
- visualPtr = AnimatedImageVisual::New(GetFactoryCache(), GetImageVisualShaderFactory(), imageUrl, propertyMap);
- }
- }
- else
- {
- Property::Array* array = imageURLValue->GetArray();
- if(array && array->Count() > 0)
- {
- visualPtr = AnimatedImageVisual::New(GetFactoryCache(), GetImageVisualShaderFactory(), *array, propertyMap);
- }
- }
- }
- break;
- }
-