X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fnpatch-data.h;h=cc520d8c34ecd8ef970a42b789b4481dfffb7fcc;hb=4764ce1dc9edc7c08766e356c839278204369d73;hp=7a052c4f47d3073898e7c7d0af72d940e62fac09;hpb=ff4a3d03472a60aba7cd8ffe111e5fcd9527d967;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 7a052c4..cc520d8 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,7 @@ // INTERNAL INCLUDES #include -#include +#include #include namespace Dali @@ -44,9 +44,10 @@ public: */ enum class LoadingState { - LOADING = 0, ///< NPatch is on loading. - LOAD_COMPLETE, ///< NPatch loading is completed successfully. - LOAD_FAILED ///< NPatch loading is failed. + NOT_STARTED = 0, ///< NPatch loading is not started yet. + LOADING, ///< NPatch is on loading. + LOAD_COMPLETE, ///< NPatch loading is completed successfully. + LOAD_FAILED ///< NPatch loading is failed. }; public: @@ -251,24 +252,22 @@ public: */ void SetLoadedNPatchData(Devel::PixelBuffer& pixelBuffer, bool preMultiplied); -private: /** - * @copydoc TextureUploadObserver::UploadCompleted + * @brief Send LoadComplete notify with current setuped NPatchData * - * 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. + * @param [in] observer observer who will be got LoadComplete notify + * @param [in] loadSuccess whether the image load success or not. */ - void UploadComplete(bool loadSuccess, int32_t textureId, TextureSet textureSet, bool useAtlasing, const Vector4& atlasRect, bool preMultiplied) override - { - } + void NotifyObserver(TextureUploadObserver* observer, const bool& loadSuccess); +private: /** * @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;