e_comp_object: if comp object is not redirected state, skip it in e_comp_object_render 25/108125/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 3 Jan 2017 05:18:11 +0000 (14:18 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Tue, 3 Jan 2017 08:32:47 +0000 (00:32 -0800)
- if comp object is not redirected state, comp object should not be set by newly committed data
  because image size of comp object is 1x1 and it should not be shown on canvas

Change-Id: I4cf6e2d02a13aa8facb19889390c8dfb47d0281c

src/bin/e_comp_object.c

index 08328e6..b7203d4 100644 (file)
@@ -4171,6 +4171,9 @@ e_comp_object_render(Evas_Object *obj)
    if (cw->ec->input_only) return EINA_TRUE;
    if (cw->external_content) return EINA_TRUE;
    if (cw->native) return EINA_FALSE;
+   /* if comp object is not redirected state, comp object should not be set by newly committed data
+      because image size of comp object is 1x1 and it should not be shown on canvas */
+   if (!cw->redirected) return EINA_TRUE;
    e_comp_object_render_update_del(obj);
    if (!e_pixmap_size_get(cw->ec->pixmap, &pw, &ph)) return EINA_FALSE;