[Tizen] CanvasRenderer: Update tvgRoot 62/267462/1
authorJunsuChoi <jsuya.choi@samsung.com>
Mon, 6 Dec 2021 00:09:38 +0000 (09:09 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Mon, 6 Dec 2021 00:09:38 +0000 (09:09 +0900)
Before setting the target buffer, the push to the root is completed,
so the buffer is set and the root should be updated.

This patch cherry-pick from 05634b1d97b1470116de69775ef6c7a503edfb15

Change-Id: Ic3673bcb5ab151ea713a4acecffb23750eb9230d

dali/internal/canvas-renderer/tizen/canvas-renderer-impl-tizen.cpp

index 7daa7c1..e767ada 100644 (file)
@@ -336,6 +336,8 @@ bool CanvasRendererTizen::Rasterize()
 
     mTvgCanvas->target(reinterpret_cast<uint32_t*>(buffer), stride / 4, width, height, tvg::SwCanvas::ARGB8888);
 
+    mTvgCanvas->update(mTvgRoot);
+
     if(mTvgCanvas->draw() != tvg::Result::Success)
     {
       DALI_LOG_ERROR("ThorVG Draw fail [%p]\n", this);