X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Ftexture-upload-observer.h;h=b00722c1a9d4b31a57ba63acdbd19f2fd5cfbb1d;hp=a8623f015c47b6a77d4d253b332d6bc707d88ef5;hb=0e1683ef848d1d877e26633609fa95e0d2ab36b5;hpb=01db027faaf245de80dfee0928fbd6f72360f7bd diff --git a/dali-toolkit/internal/visuals/texture-upload-observer.h b/dali-toolkit/internal/visuals/texture-upload-observer.h index a8623f0..b00722c 100644 --- a/dali-toolkit/internal/visuals/texture-upload-observer.h +++ b/dali-toolkit/internal/visuals/texture-upload-observer.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_TEXTURE_UPLOAD_OBSERVER_H /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -18,9 +18,14 @@ * */ -#include +// EXTERNAL INCLUDES +#include #include +// INTERNAL INCLUDES +#include +#include + namespace Dali { @@ -67,6 +72,17 @@ public: const Vector4& atlasRect, bool preMultiplied ) = 0; /** + * The action to be taken once the async load has finished. + * This should be overridden by the deriving class. + * + * @param[in] loadSuccess True if the image load was successful (i.e. the resource is available). If false, then the resource failed to load. + * @param[in] pixelBuffer The PixelBuffer of the loaded image. + * @param[in] url The url address of the loaded image. + * @param[in] preMultiplied True if the image had pre-multiplied alpha applied + */ + virtual void LoadComplete( bool loadSuccess, Devel::PixelBuffer pixelBuffer, const Internal::VisualUrl& url, bool preMultiplied ) = 0; + + /** * @brief Returns the destruction signal. * This is emitted when the observer is destroyed. * This is used by the observer notifier to mark this observer as destroyed (IE. It no longer needs notifying).