summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_renderer_software_shape.c
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2020-06-03 11:37:23 +0900
committerHermet Park <chuneon.park@samsung.com>2020-06-03 11:37:23 +0900
commit442fae5c5621636bf52c3467d6d4c7147fd53a5a (patch)
tree036bfe1ef2f75a043c78eaa40663f39d3013887f /src/lib/ector/software/ector_renderer_software_shape.c
parente94b5d014f42f53bbcc0e3c12693c801a78f9fcf (diff)
Efl.Canvas.Vg.Object: Optimize Ector Surface Size
Summary: The ector surface size was determined by the size of the vg object. vg object is usually sized by the size of the container. So, the ector surface is set unnecessarily large. This patch sets the ector surface size to the path boundary. And the path boundary refers to the stroke width and miterlimit. Test Plan: vector sample {F3887634} {F3887632} [grey area is ector surface size] {F3887633} Reviewers: Hermet, kimcinoo, smohanty, herb Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11865
Diffstat (limited to '')
-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 d8d804db22..be024ff5d1 100644
--- a/src/lib/ector/software/ector_renderer_software_shape.c
+++ b/src/lib/ector/software/ector_renderer_software_shape.c
@@ -654,8 +654,8 @@ _ector_renderer_software_shape_ector_renderer_draw(Eo *obj EINA_UNUSED,
654 if (task) ector_software_wait(_update_rle, _done_rle, task); 654 if (task) ector_software_wait(_update_rle, _done_rle, task);
655 655
656 // adjust the offset 656 // adjust the offset
657 x = pd->surface->x + (int)pd->base->origin.x; 657 x = (int)pd->base->origin.x - pd->surface->x;
658 y = pd->surface->y + (int)pd->base->origin.y; 658 y = (int)pd->base->origin.y - pd->surface->y;
659 659
660 ector_software_rasterizer_clip_rect_set(pd->surface->rasterizer, clips); 660 ector_software_rasterizer_clip_rect_set(pd->surface->rasterizer, clips);
661 ector_software_rasterizer_transform_set(pd->surface->rasterizer, pd->base->m); 661 ector_software_rasterizer_transform_set(pd->surface->rasterizer, pd->base->m);