Efl.Canvas.Vg.Object : Fix unnecessary resize function call. 62/199262/1
authorJunsuChoi <jsuya.choi@samsung.com>
Thu, 7 Feb 2019 09:57:58 +0000 (18:57 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 8 Feb 2019 04:07:17 +0000 (13:07 +0900)
Summary:
   When size of view changed, call resize function in render.

Test Plan: N/A

Reviewers: Hermet

Subscribers: cedric, SanghyeonLee, #reviewers, smohanty, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7890

Change-Id: Id235b654a2b14f09533a6dff5466ec1170e56c5f

src/lib/evas/canvas/efl_canvas_vg_object.c

index 685e3f9..d52a340 100644 (file)
@@ -622,11 +622,12 @@ _cache_vg_entry_render(Evas_Object_Protected_Data *obj,
 
         //Size is changed, cached data is invalid.
         if ((size.w != vg_entry->w) || (size.h != vg_entry->h))
-          drop_cache = EINA_TRUE;
-
-        vg_entry = evas_cache_vg_entry_resize(vg_entry, size.w, size.h);
-        evas_cache_vg_entry_del(pd->vg_entry);
-        pd->vg_entry = vg_entry;
+          {
+             drop_cache = EINA_TRUE;
+             vg_entry = evas_cache_vg_entry_resize(vg_entry, size.w, size.h);
+             evas_cache_vg_entry_del(pd->vg_entry);
+             pd->vg_entry = vg_entry;
+          }
 
         //update for adjusted pos and size.
         offset.x = w - size.w;