evas: Do not preload data if data is cached.

Summary: Summary : If data is cached, need not to reload data.

Test Plan: Local tests

Reviewers: jpeg

Reviewed By: jpeg

Subscribers: eunue, spacegrapher, cedric, wonsik, jiin.moon

Differential Revision: https://phab.enlightenment.org/D3418
This commit is contained in:
Minkyoung Kim 2015-12-11 13:50:40 +09:00 committed by Jean-Philippe Andre
parent ce21e513d5
commit a9df72f611
1 changed files with 1 additions and 1 deletions

View File

@ -1268,7 +1268,7 @@ evas_cache_image_preload_data(Image_Entry *im, const Eo *target,
{
RGBA_Image *img = (RGBA_Image *)im;
if ((im->flags.loaded) && (img->image.data))
if (((im->flags.loaded) && (img->image.data)) || im->flags.cached)
{
evas_object_inform_call_image_preloaded((Evas_Object*)target);
return;