tvg_saver: optimize saving data.
authorHermet Park <chuneon.park@samsung.com>
Tue, 10 Aug 2021 02:54:24 +0000 (11:54 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 13 Aug 2021 05:21:50 +0000 (14:21 +0900)
commit7fc7d0e4edef123aa7f4428a80e241070435a18e
treee161fbbb619670549e67390d85d8d93f9f9c98a4
parentb3e48f64a5184c526ce430ad6136ddf82e2ae3c1
tvg_saver: optimize saving data.

This optimizes binary size by skipping the scene if it has the only child.

though the reduced size is too trivial size (avg 0.4% as far as I checked our example svgs),
we can reduce the loading job & runtime memory as well.
src/examples/images/test.tvg
src/lib/tvgPaint.h
src/lib/tvgPictureImpl.h
src/lib/tvgSceneImpl.h
src/savers/tvg/tvgTvgSaver.cpp
src/savers/tvg/tvgTvgSaver.h