sw_engine: revise scale transform logic. 74/239074/5
authorHermet Park <chuneon.park@samsung.com>
Tue, 21 Jul 2020 11:24:25 +0000 (20:24 +0900)
committerHermet Park <chuneon.park@samsung.com>
Wed, 22 Jul 2020 11:59:52 +0000 (20:59 +0900)
commit4d72eeda1556e179ecf7b60bc2a7829a476ef8e8
tree68d19c717f61de3853a1cef08f03a4d3d90ecb83
parent5dcafb8b89928d36821a5c92573df2009b6ae821
sw_engine: revise scale transform logic.

Basically, stroke width size is linear,

engine couldn't apply scale factor from the matrix which contains 2 dimensional values.

Thus, we can apply it if the scale factor of x/y is identical.

Otherwise, we should transform every stroke points in the stroking process.
That scenario can be improved with another patch.

Change-Id: I070dcf29d2e42f21e182bdf4239781464158ef73
src/lib/sw_engine/tvgSwCommon.h
src/lib/sw_engine/tvgSwRenderer.cpp
src/lib/sw_engine/tvgSwShape.cpp
src/lib/sw_engine/tvgSwStroke.cpp
src/lib/tvgRender.h