X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Ftexture-upload-observer.h;h=1bf9944ca5051bca31c1d06d6a67e2b2f826a59f;hb=refs%2Fchanges%2F94%2F215094%2F2;hp=c30027424d83305ca31d92ab82b0a6e60ba94f27;hpb=05316fdb6779dced99b135c06326ddaeea1fc2ee;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/texture-upload-observer.h b/dali-toolkit/internal/visuals/texture-upload-observer.h index c300274..1bf9944 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) 2018 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,7 +18,7 @@ * */ -#include +#include #include namespace Dali @@ -36,7 +36,7 @@ namespace Toolkit * Derived class must implement the UploadComplete method which is * executed once the texture is ready to draw. */ -class DALI_IMPORT_API TextureUploadObserver +class TextureUploadObserver { public: @@ -57,11 +57,14 @@ public: * This should be overridden by the deriving class. * * @param[in] loadSuccess True if the texture load was successful (i.e. the resource is available). If false, then the resource failed to load. In future, this will automatically upload a "broken" image. + * @param[in] textureId The textureId of the loaded texture in the TextureManager * @param[in] textureSet The TextureSet containing the Texture * @param[in] useAtlasing True if atlasing was used (note: this may be different to what was requested) * @param[in] atlasRect If using atlasing, this is the rectangle within the atlas to use. + * @param[in] preMultiplied True if the image had pre-multiplied alpha applied */ - virtual void UploadComplete( bool loadSuccess, TextureSet textureSet, bool useAtlasing, const Vector4& atlasRect ) = 0; + virtual void UploadComplete( bool loadSuccess, int32_t textureId, TextureSet textureSet, bool useAtlasing, + const Vector4& atlasRect, bool preMultiplied ) = 0; /** * @brief Returns the destruction signal.