Support YUV decoding for JPEG
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit-internal / utc-Dali-TextureManager.cpp
index 4b917a0..1c8fea2 100644 (file)
@@ -760,8 +760,11 @@ int UtcTextureManagerUseInvalidMaskAndMaskLoadedLater(void)
       true, ///< orientationCorrection
       preMultiply);
 
-    textureManager.AsyncLoadComplete(textureId, pixelBuffer);
-    textureManager.AsyncLoadComplete(maskInfo->mAlphaMaskId, Dali::Devel::PixelBuffer());
+    std::vector<Devel::PixelBuffer> pixelBuffers;
+    pixelBuffers.push_back(pixelBuffer);
+    textureManager.AsyncLoadComplete(textureId, pixelBuffers);
+    std::vector<Devel::PixelBuffer> maskBuffers;
+    textureManager.AsyncLoadComplete(maskInfo->mAlphaMaskId, maskBuffers);
     textureManager.Remove(maskInfo->mAlphaMaskId, nullptr);
     textureManager.Remove(textureId, &observer);
   }
@@ -1216,7 +1219,8 @@ int UtcTextureManagerRemoveDuringApplyMasking(void)
   // ApplyMask event come back, and do nothing.
   // CAPTION : HARD-CODING.
   {
-    textureManager.AsyncLoadComplete(textureId1, Dali::Devel::PixelBuffer());
+    std::vector<Devel::PixelBuffer> pixelBuffers;
+    textureManager.AsyncLoadComplete(textureId1, pixelBuffers);
     textureManager.Remove(maskInfo->mAlphaMaskId, nullptr);
   }
 
@@ -1230,7 +1234,8 @@ int UtcTextureManagerRemoveDuringApplyMasking(void)
 
   // CAPTION : HARD-CODING.
   {
-    textureManager.AsyncLoadComplete(textureId2, Dali::Devel::PixelBuffer());
+    std::vector<Devel::PixelBuffer> pixelBuffers;
+    textureManager.AsyncLoadComplete(textureId2, pixelBuffers);
     textureManager.Remove(textureId2, &observer2);
   }
 
@@ -1239,4 +1244,4 @@ int UtcTextureManagerRemoveDuringApplyMasking(void)
   DALI_TEST_EQUALS(observer2.mCompleteType, TestObserver::CompleteType::UPLOAD_COMPLETE, TEST_LOCATION);
 
   END_TEST;
-}
\ No newline at end of file
+}