X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-graphics-texture.cpp;h=30a759d03fb581110e6c6e99a66fa11f49a5c871;hb=2e3b4a1a1819c92b2d925b52cc9d1ea4faa22f69;hp=9e1ad3ecb8da8b1d22d50a76062141302adad5a1;hpb=27f1cf254ac125105e5ea4b5b830d6f58155b685;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-texture.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-texture.cpp index 9e1ad3e..30a759d 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-texture.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-texture.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 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. @@ -916,22 +916,6 @@ void TestGraphicsTexture::Prepare() { if(mCreateInfo.nativeImagePtr) { - /*********************************************************************************** - * If the native image source changes, we need to re-create the texture. * - * In EGL, this is done in native image implementation in PrepareTexture below. * - * * - * In Vulkan impl, this was done in dali-core side. I think we should make this * - * work in the graphics implementation instead. * - ***********************************************************************************/ - if(mCreateInfo.nativeImagePtr->SourceChanged()) - { - uint32_t width = mCreateInfo.nativeImagePtr->GetWidth(); - uint32_t height = mCreateInfo.nativeImagePtr->GetHeight(); - mCreateInfo.SetSize({width, height}); // Size may change - - // @todo Re-initialize this texture from the new create info. - } - // Ensure the native image is up-to-date mCreateInfo.nativeImagePtr->PrepareTexture(); }