map: don't update surface unencessarily.
authorChunEon Park <hermet@hermet.pe.kr>
Thu, 10 Sep 2015 12:27:47 +0000 (21:27 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Thu, 10 Sep 2015 12:31:41 +0000 (21:31 +0900)
smart object don't need to update map surface always
check the state more elaborately so minus one more surface drawing!

src/lib/evas/canvas/evas_object_smart.c

index fab0f1b..cacc5a4 100644 (file)
@@ -991,7 +991,9 @@ evas_object_smart_changed_get(Evas_Object *eo_obj)
 
         if (has_map)
           {
-             if (obj->need_surface_clear || ((obj->changed_pchange) && (obj->changed_map)))
+
+             if ((obj->need_surface_clear && obj->changed && !obj->is_smart) ||
+                 ((obj->changed_pchange) && (obj->changed_map)))
                return EINA_TRUE;
           }
      }