Fix bug after svace issue 17/304217/1
authorsunghyun kim <scholb.kim@samsung.com>
Fri, 12 Jan 2024 06:28:56 +0000 (15:28 +0900)
committersunghyun kim <scholb.kim@samsung.com>
Fri, 12 Jan 2024 06:28:56 +0000 (15:28 +0900)
Change-Id: If25637bb2ddbf8e76741962cddbdb5f88a08394a

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

index 8ce4542..b48150e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -173,6 +173,9 @@ bool VectorAnimationRendererTizen::Render(uint32_t frameNumber)
       mBuffers.push_back(SurfacePair(tbmSurface, surface));
     }
 
+    // Render the frame
+    mVectorRenderer->renderSync(frameNumber, surface);
+
     if(mEnableFixedCache && (frameNumber < mDecodedBuffers.size()))
     {
       const uint32_t       bufferSize = mWidth * mHeight * Dali::Pixel::GetBytesPerPixel(Dali::Pixel::RGBA8888);
@@ -182,9 +185,6 @@ bool VectorAnimationRendererTizen::Render(uint32_t frameNumber)
     }
   }
 
-  // Render the frame
-  mVectorRenderer->renderSync(frameNumber, surface);
-
   tbm_surface_unmap(tbmSurface);
 
   tbm_surface_queue_enqueue(mTbmQueue, tbmSurface);