TizenVectorImageRenderer: Remove unnecessary canvas clear 20/261320/1
authorJunsuChoi <jsuya.choi@samsung.com>
Thu, 15 Jul 2021 08:17:29 +0000 (17:17 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 15 Jul 2021 08:19:51 +0000 (17:19 +0900)
Loaded paint should not be cleared because it is reused.

Change-Id: Ic7c3f333fd97bd879afa647f08563f1162f2c645

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

index e22f0f7..0867d9c 100755 (executable)
@@ -53,8 +53,6 @@ TizenVectorImageRenderer::~TizenVectorImageRenderer()
     delete(mPicture);
   }
 
-  mSwCanvas->clear();
-
   tvg::Initializer::term(tvg::CanvasEngine::Sw);
 }
 
@@ -110,7 +108,6 @@ 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);