Efl.Canvas.Vg.Object: Optimize Ector Surface Size
authorJunsuChoi <jsuya.choi@samsung.com>
Wed, 3 Jun 2020 02:37:23 +0000 (11:37 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 3 Jun 2020 21:18:29 +0000 (06:18 +0900)
commit9e5a883c135db04990ec42f235e40325bd1cbf03
tree634a940b5607564c6a15ff489f90c35ccfedbf7c
parentce67b392a82d61ff7f09869ea65448f31273b37d
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
src/lib/ector/software/ector_renderer_software_shape.c
src/lib/edje/edje_calc.c
src/lib/evas/canvas/efl_canvas_vg_container.c
src/lib/evas/canvas/efl_canvas_vg_object.c
src/lib/evas/canvas/evas_vg_private.h