X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fnpatch-data.h;h=f67e5998c9b3b62bf03613e966cc66aab074e4a6;hb=cbae9964e389c6a5cafa3a284f281609a0ed2e60;hp=a807d3947142afbc419cdf6dedbb6964956f868f;hpb=b8da2e53925b9abb9fa362560069e8ca4aa62f81;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/npatch-data.h b/dali-toolkit/internal/visuals/npatch-data.h index a807d39..f67e599 100644 --- a/dali-toolkit/internal/visuals/npatch-data.h +++ b/dali-toolkit/internal/visuals/npatch-data.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_NPATCH_DATA_H /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 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. @@ -24,7 +24,8 @@ // INTERNAL INCLUDES #include -#include +#include +#include namespace Dali { @@ -100,14 +101,14 @@ public: * * @param [in] url NPatch image url */ - void SetUrl(const std::string url); + void SetUrl(const VisualUrl& url); /** * @brief Retrieve the image url. * * @return Return the image url. */ - std::string GetUrl() const; + VisualUrl GetUrl() const; /** * @brief Set texture set on the cache data @@ -252,29 +253,19 @@ public: private: /** - * @copydoc TextureUploadObserver::UploadCompleted - * - * To avoid rendering garbage pixels, renderer should be added to actor after the resources are ready. - * This callback is the place to add the renderer as it would be called once the loading is finished. - */ - void UploadComplete(bool loadSuccess, int32_t textureId, TextureSet textureSet, bool useAtlasing, const Vector4& atlasRect, bool preMultiplied) override - { - } - - /** * @copydoc TextureUploadObserver::LoadComplete * * To avoid rendering garbage pixels, renderer should be added to actor after the resources are ready. * This callback is the place to add the renderer as it would be called once the loading is finished. */ - void LoadComplete(bool loadSuccess, Devel::PixelBuffer pixelBuffer, const VisualUrl& url, bool preMultiplied) override; + void LoadComplete(bool loadSuccess, TextureInformation textureInformation) override; private: using ObserverListType = Dali::Vector; NPatchDataId mId; ObserverListType mObserverList; ///< Container used to store all observer clients of this Texture - std::string mUrl; ///< Url of the N-Patch + VisualUrl mUrl; ///< Url of the N-Patch TextureSet mTextureSet; ///< Texture containing the cropped image NPatchUtility::StretchRanges mStretchPixelsX; ///< X stretch pixels NPatchUtility::StretchRanges mStretchPixelsY; ///< Y stretch pixels