vg_json: Set multiple mask from json 08/203808/2
authorJunsuChoi <jsuya.choi@samsung.com>
Thu, 18 Apr 2019 01:22:34 +0000 (10:22 +0900)
committerjunsu choi <jsuya.choi@samsung.com>
Thu, 18 Apr 2019 01:49:07 +0000 (01:49 +0000)
commite896c5d8670d48c7d3e59f8161d85c7c0c88b0f8
tree52637d7ff4235f441f0c500685219c0d0a074deb
parent679f5ee8d08d3b63c89534a0fc08414f2e4b66ef
vg_json: Set multiple mask from json

Summary:
This patch supports multiple masks for multiple attributes on a layer.
Make main_mask_layer and make each mask EFL_CANVAS_VG_CONTAINER_CLASS and connect them.
main_mask_layer is made for masks
The masks are composited into main_mask_layer in order.
main_mask_layer exists for the intersect option in last order
This can be optimized later, and is created and used temporarily in this patch.

Test Plan:
If there are three masks, they can be created as below.
mask_set(clayer, main_mask);
mask_set(main_mask, mask_1);
mask_set(mask_1, mask_2);
mask_set(mask_2, mask_3);

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: cedric, kimcinoo, #reviewers, smohanty, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8507

Change-Id: I5a75640308a69e8e7e50800ff2444d6078c4fe4d
src/static_libs/vg_common/vg_common_json.c