summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2020-04-13 13:41:17 +0900
committerHermet Park <chuneon.park@samsung.com>2020-04-13 13:41:17 +0900
commit720db8694ce26f5f29efe79a3e125ccb6fbc1b14 (patch)
tree96d83bb1ecc5c4b4abcb203585f55bcae16274e0
parentb79b3eea00c7f7d7cd3268df4fc1bb8b5f66444e (diff)
Ector: Refer to visibility of Ector_Renderer when doing rle_update.
Summary: An object with visibility false may not have a normal path or data. It can cause invalid access or affect other ector renderers. This is a patch to prevent them. Test Plan: N/A Reviewers: Hermet, kimcinoo, herb Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11689
-rw-r--r--src/lib/ector/software/ector_renderer_software_shape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ector/software/ector_renderer_software_shape.c b/src/lib/ector/software/ector_renderer_software_shape.c
index 0db1ea2a70..d8d804db22 100644
--- a/src/lib/ector/software/ector_renderer_software_shape.c
+++ b/src/lib/ector/software/ector_renderer_software_shape.c
@@ -535,8 +535,8 @@ _need_update_rle(Eo *obj, Ector_Renderer_Software_Shape_Data *pd)
535{ 535{
536 if (pd->task) return pd->task; 536 if (pd->task) return pd->task;
537 537
538 if (!_generate_stroke_data(pd) && 538 if (!pd->base->visibility || (!_generate_stroke_data(pd) &&
539 !_generate_shape_data(pd)) 539 !_generate_shape_data(pd)))
540 return NULL; 540 return NULL;
541 541
542 const Efl_Gfx_Path_Command *cmds; 542 const Efl_Gfx_Path_Command *cmds;