From: JunsuChoi Date: Mon, 1 Feb 2021 00:59:33 +0000 (+0900) Subject: Efl.Canvas.Vg.Object: Skip render, if size of the drawing area is 0 X-Git-Tag: submit/tizen/20210204.012522~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fac4ec28252f165f393970cea46f9c7b69bcc8f;p=platform%2Fupstream%2Fefl.git Efl.Canvas.Vg.Object: Skip render, if size of the drawing area is 0 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 --- diff --git a/src/lib/evas/canvas/efl_canvas_vg_object.c b/src/lib/evas/canvas/efl_canvas_vg_object.c index e0ff2d5..ad31251 100644 --- a/src/lib/evas/canvas/efl_canvas_vg_object.c +++ b/src/lib/evas/canvas/efl_canvas_vg_object.c @@ -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) {