X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Finternal%2Fvisuals%2Fimage-atlas-manager.h;h=05ed3a5357235c0dc1ef218253a4059b81304a87;hb=71246d76250be34fc60950da4eb5d7bf6241c740;hp=6553ed95777dff583aaaec679135792bdca39aa8;hpb=1972f043026a3e1bdcaad71c17859a8f324d1e6d;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/image-atlas-manager.h b/dali-toolkit/internal/visuals/image-atlas-manager.h index 6553ed9..05ed3a5 100644 --- a/dali-toolkit/internal/visuals/image-atlas-manager.h +++ b/dali-toolkit/internal/visuals/image-atlas-manager.h @@ -24,7 +24,7 @@ #include // INTERNAL INCLUDES -#include +#include namespace Dali { @@ -32,6 +32,8 @@ namespace Dali namespace Toolkit { +class AtlasUploadObserver; + namespace Internal { @@ -62,17 +64,18 @@ public: * * @param [out] textureRect The texture area of the resource image in the atlas. * @param [in] url The URL of the resource image file to use. - * @param [in] size The width and height to fit the loaded image to. + * @param [in, out] size The width and height to fit the loaded image to. * @param [in] fittingMode The method used to fit the shape of the image before loading to the shape defined by the size parameter. * @param [in] orientationCorrection Reorient the image to respect any orientation metadata in its header. + * @param [in] atlasUploadObserver The object to observe the uploading state inside ImageAtlas. * @return The texture set containing the image. */ TextureSet Add( Vector4& textureRect, - const std::string& url, - ImageDimensions size = ImageDimensions(), - FittingMode::Type fittingMode = FittingMode::DEFAULT, - bool orientationCorrection = true ); - + const std::string& url, + ImageDimensions& size, + FittingMode::Type fittingMode = FittingMode::DEFAULT, + bool orientationCorrection = true, + AtlasUploadObserver* atlasUploadObserver = NULL ); /** * @brief Add a pixel buffer to the atlas *