Let we check if inputed value is equal with cached value.
If it is same, then we don't need to re-generate resource.
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
{
cachedImagePropertyMap = new PropertyMap();
}
+
+ // To optimization, we don't check URL duplicate case. We already checked before.
+ if (key != ImageVisualProperty.URL)
+ {
+ using (PropertyValue oldValue = GetCachedImageVisualProperty(key))
+ {
+ if (oldValue != null && oldValue.EqualTo(value))
+ {
+ // Ignore UpdateImage query when we try to update equality value.
+ return;
+ }
+ }
+ }
imagePropertyUpdatedFlag = true;
cachedImagePropertyMap[key] = value;