elementary/mapbuf - removed workaround code that would cause the performance issue.
authorChunEon Park <hermet@hermet.pe.kr>
Mon, 7 Jan 2013 07:07:27 +0000 (07:07 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 7 Jan 2013 07:07:27 +0000 (07:07 +0000)
Sorry, I have no idea now what to do, even mapbuf has much side effects in rendering.

SVN revision: 82322

legacy/elementary/src/lib/elm_mapbuf.c

index 85a6ad3..ab10988 100644 (file)
@@ -123,35 +123,12 @@ _configure(Evas_Object *obj, Eina_Bool update_force)
           evas_object_move(sd->content, x, y);
         else
           {
-             //Let give the chance to update the content whenever content is
-             //coming inside buffer from the outside. It means the content may
-             //have been changed when it is on the outside, but the surface
-             //may not be updated because contents would be outside of the
-             //viewport.
-             Evas_Coord output_w, output_h;
              Evas *e = evas_object_evas_get(obj);
-             evas_output_size_get(e, &output_w, &output_h);
-             Eina_Bool update = EINA_FALSE;
-
-             if ((x2 >= output_w) || (y2 >= output_h) ||
-                 ((x2 + w2) <= 0) || ((y2 + h2) <= 0))
-               sd->outside = EINA_TRUE;
-             else if (sd->outside)
-               {
-                  sd->outside = EINA_FALSE;
-                  update = EINA_TRUE;
-               }
-
-             if (update)
-               evas_object_move(sd->content, x, y);
-             else
-               {
-                  evas_smart_objects_calculate(e);
-                  evas_nochange_push(e);
-                  evas_object_move(sd->content, x, y);
-                  evas_smart_objects_calculate(e);
-                  evas_nochange_pop(e);
-               }
+             evas_smart_objects_calculate(e);
+             evas_nochange_push(e);
+             evas_object_move(sd->content, x, y);
+             evas_smart_objects_calculate(e);
+             evas_nochange_pop(e);
           }
         _mapbuf(obj);
      }