Efl.Canvas.Vg.Object: Skip render, if size of the drawing area is 0 22/252622/1
authorJunsuChoi <jsuya.choi@samsung.com>
Mon, 1 Feb 2021 00:59:33 +0000 (09:59 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Mon, 1 Feb 2021 01:04:09 +0000 (10:04 +0900)
Summary:
If the size of the boundary of path is 0, there is no area to draw.
Therefore, it is the same as hide().
If there is no area to draw, there is no need to create a buffer or perform rendering.

Test Plan: N/A

Reviewers: Hermet, kimcinoo

Reviewed By: Hermet

Subscribers: devilhorns, cedric, #reviewers, #committers, herb

Tags: #efl

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

Change-Id: I5c3345986f034664d43ea84cef3f3f08f70c4ae5

src/lib/evas/canvas/efl_canvas_vg_object.c

index e0ff2d5..ad31251 100644 (file)
@@ -810,6 +810,8 @@ _user_vg_entry_render(Evas_Object_Protected_Data *obj,
                            user_entry->path_bounds.w,
                            user_entry->path_bounds.h);
      }
+   // If size of the drawing area is 0, no render.
+   else return;
 
    if (pd->viewbox.w != 0 && pd->viewbox.h !=0)
      {