VectorImageRenderer: Fix data released in case of async loading 36/271536/2
authorMichal Maciola <m.maciola@samsung.com>
Mon, 21 Feb 2022 13:30:47 +0000 (14:30 +0100)
committerHeeyong Song <heeyong.song@samsung.com>
Wed, 23 Feb 2022 06:30:49 +0000 (15:30 +0900)
commitfabf565e6e8818cf429b8e2cc9ea6bf082723b4a
tree540f19b932d73724f39d42b5f99371af406fb072
parentfc4b197a002b1ab92382a788ccb94239ff5acd5a
VectorImageRenderer: Fix data released in case of async loading

If thorvg is used by multiple processes it can't be guaranteed that particular
amount of threads will be used. Especially if we choose to work synchronously,
another process may force it to run asynchronously.
This patch changes copy parameter of load() to true, so to assure that in case
of asynchronous execution the data will not be released before the vector
image loaded.
It also adds printing of the return code in case of mSwCanvas->draw() failure.

Change-Id: I539323768d9fa0be0aeb165b161086973efddd8b
dali/internal/vector-image/common/vector-image-renderer-impl.cpp