summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2021-02-01 09:59:33 +0900
committerJunsuChoi <jsuya.choi@samsung.com>2021-02-01 09:59:33 +0900
commit77c9adf1fd5030f5e07e678df9680ded5d93f501 (patch)
tree2c589b2b5a9452769b5ca843b57dc74fbe04e478 /src/lib
parent44425e748997a7ed3e34537dc396accfd5ce8981 (diff)
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
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/evas/canvas/efl_canvas_vg_object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_vg_object.c b/src/lib/evas/canvas/efl_canvas_vg_object.c
index 16d29b43e4..3bfce2c05b 100644
--- a/src/lib/evas/canvas/efl_canvas_vg_object.c
+++ b/src/lib/evas/canvas/efl_canvas_vg_object.c
@@ -734,6 +734,8 @@ _user_vg_entry_render(Evas_Object_Protected_Data *obj,
734 user_entry->path_bounds.w, 734 user_entry->path_bounds.w,
735 user_entry->path_bounds.h); 735 user_entry->path_bounds.h);
736 } 736 }
737 // If size of the drawing area is 0, no render.
738 else return;
737 739
738 if (pd->viewbox.w != 0 && pd->viewbox.h !=0) 740 if (pd->viewbox.w != 0 && pd->viewbox.h !=0)
739 { 741 {