X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftest-native-image.h;h=cbbef46a6bc745eeb4995e07dfcd9a227903b701;hb=4255529cd62def14c042f78edd30b6919fa591e1;hp=bd1bfcc141997419604098457aecd9174f2ef662;hpb=3ec04367693dd4240d35ef4c707982304ad69fde;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-native-image.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-native-image.h index bd1bfcc..cbbef46 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-native-image.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-native-image.h @@ -2,7 +2,7 @@ #define TEST_NATIVE_IMAGE_H /* - * 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. @@ -107,20 +107,31 @@ public: }; inline bool SourceChanged() const override { - return false; + return true; }; + inline Rect GetUpdatedArea() override + { + return mUpdatedArea; + } + inline virtual Dali::NativeImageInterface::Extension* GetExtension() { return nullptr; } + inline void SetUpdatedArea(const Rect& updatedArea) + { + mUpdatedArea = updatedArea; + } + private: TestNativeImage(uint32_t width, uint32_t height); virtual ~TestNativeImage(); - uint32_t mWidth; - uint32_t mHeight; + uint32_t mWidth; + uint32_t mHeight; + Rect mUpdatedArea{}; public: int32_t mExtensionCreateCalls;