Revert "[Tizen] TizenVectorImageRenderer: Remove unnecessary canvas clear"
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Mon, 19 Jul 2021 06:34:54 +0000 (15:34 +0900)
committerDaekwang Ryu <dkdk.ryu@samsung.com>
Mon, 19 Jul 2021 06:34:54 +0000 (15:34 +0900)
This reverts commit 5862f2f6f0d4750c2bcd8284d1cee2db9f204747.

dali-extension/vector-image-renderer/tizen-vector-image-renderer.cpp

index 0867d9c..e22f0f7 100755 (executable)
@@ -53,6 +53,8 @@ TizenVectorImageRenderer::~TizenVectorImageRenderer()
     delete(mPicture);
   }
 
+  mSwCanvas->clear();
+
   tvg::Initializer::term(tvg::CanvasEngine::Sw);
 }
 
@@ -108,6 +110,7 @@ bool TizenVectorImageRenderer::Rasterize(Dali::Devel::PixelBuffer& buffer)
   auto width = buffer.GetWidth();
   auto height = buffer.GetHeight();
 
+  mSwCanvas->clear();
   mSwCanvas->target(reinterpret_cast<uint32_t*>(pBuffer), width, width, height, tvg::SwCanvas::ABGR8888);
 
   DALI_LOG_RELEASE_INFO("TizenVectorImageRenderer::Rasterize: Buffer[%p] size[%d x %d]! [%p]\n", pBuffer, width, height, this);