diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2013-09-04 16:14:37 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2013-10-28 15:47:15 +0900 |
commit | 97d9fab7042f213498268dfc58636b823380245c (patch) | |
tree | 344ac20e4aa4854d23dba9f7afada5b6a2759e65 /src/lib/evas/cache2 | |
parent | bfe3fe27df9384642d8f3b277ec694c9d42fc0c9 (diff) |
evas/cserve2: Fallback to normal cache for animated gifs
Pass around "animated" flag for images that can be animated.
Fallback to local cache if the image is animated.
Implementing support for animated images in cserve2 does
not seem to make a lot of sense considering each frame must
be requested independently in real time,... and to be honest
there doesn't seem to be any valid use case anyway :)
Diffstat (limited to 'src/lib/evas/cache2')
-rw-r--r-- | src/lib/evas/cache2/evas_cache2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/cache2/evas_cache2.c b/src/lib/evas/cache2/evas_cache2.c index 4b51b3292e..0444741289 100644 --- a/src/lib/evas/cache2/evas_cache2.c +++ b/src/lib/evas/cache2/evas_cache2.c | |||
@@ -873,6 +873,9 @@ evas_cache2_image_scale_load(Image_Entry *im, | |||
873 | int error = EVAS_LOAD_ERROR_NONE; | 873 | int error = EVAS_LOAD_ERROR_NONE; |
874 | Image_Entry *ret; | 874 | Image_Entry *ret; |
875 | 875 | ||
876 | if (!im->cache2) | ||
877 | return im; | ||
878 | |||
876 | if (!smooth && im->scale_hint != EVAS_IMAGE_SCALE_HINT_STATIC) | 879 | if (!smooth && im->scale_hint != EVAS_IMAGE_SCALE_HINT_STATIC) |
877 | goto parent_out; | 880 | goto parent_out; |
878 | 881 | ||