tvg_format: fix broken clippath region.
authorHermet Park <chuneon.park@samsung.com>
Sat, 28 Aug 2021 12:55:51 +0000 (21:55 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Mon, 30 Aug 2021 00:44:59 +0000 (09:44 +0900)
commit52ed11fd8302acb099c2fd2fc5f300ea919cb7e6
tree631dbdc95bdec1e5b62d81de98452c8380ea9835
parent619db8a9605a35a6e96b57e01c8954e07254caca
tvg_format: fix broken clippath region.

there some multiple wrong calculation about size during tvg optimiation.
this patch fixes them.

1. picture needs to return the current desired size because
it will save the transformed the geometry. the final size should be
recorvered as the base size from the loader.

2. clippath missed to multiply parents transform, it's fixed.

@Issue: https://github.com/Samsung/thorvg/issues/752
src/examples/images/test.tvg
src/lib/tvgPictureImpl.h
src/savers/tvg/tvgTvgSaver.cpp
src/savers/tvg/tvgTvgSaver.h