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
This commit is contained in:
junsu choi 2021-02-01 09:59:33 +09:00
parent 44425e7489
commit 77c9adf1fd
1 changed files with 2 additions and 0 deletions

View File

@ -734,6 +734,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)
{