[Tizen] VectorImageRenderer: Fix data released in case of async loading 97/271597/1 accepted/tizen/6.5/unified/20220323.134106 submit/tizen_6.5/20220323.020202
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 08:27:30 +0000 (17:27 +0900)
commit28ebf082cb830dc80b89656472cf9fdc47ccf6ae
tree85447bcde6e46e41f5c6abcf00165c53c051639f
parent442106aab305825abe7c2eeed93b52da847a0e91
[Tizen] 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