X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fimage-loader%2Fimage-atlas-impl.cpp;h=30f1ba784e68ec1ee38f4aacc5b2fb37e843bc20;hb=5e86784bcfbc88120549a72284a23b98adbc90ae;hp=da8fe9061a3548123a0da763090f9661e68cb511;hpb=34c7e90e1a2542994e329fe19875701cfe52c66e;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/image-loader/image-atlas-impl.cpp b/dali-toolkit/internal/image-loader/image-atlas-impl.cpp index da8fe90..30f1ba7 100644 --- a/dali-toolkit/internal/image-loader/image-atlas-impl.cpp +++ b/dali-toolkit/internal/image-loader/image-atlas-impl.cpp @@ -21,7 +21,7 @@ // EXTERNAL INCLUDES #include #include -#include +#include #include #include @@ -33,6 +33,7 @@ namespace Toolkit namespace Internal { +typedef unsigned char PixelBuffer; Texture ImageAtlas::PackToAtlas( const std::vector& pixelData, Dali::Vector& textureRects ) { @@ -126,7 +127,7 @@ float ImageAtlas::GetOccupancyRate() const void ImageAtlas::SetBrokenImage( const std::string& brokenImageUrl ) { - mBrokenImageSize = ResourceImage::GetImageSize( brokenImageUrl ); + mBrokenImageSize = Dali::GetClosestImageSize( brokenImageUrl ); if(mBrokenImageSize.GetWidth() > 0 && mBrokenImageSize.GetHeight() > 0 ) // check the url is valid { mBrokenImageUrl = brokenImageUrl; @@ -144,7 +145,7 @@ bool ImageAtlas::Upload( Vector4& textureRect, ImageDimensions zero; if( size == zero ) // image size not provided { - dimensions = ResourceImage::GetImageSize( url ); + dimensions = Dali::GetClosestImageSize( url ); if( dimensions == zero ) // Fail to read the image & broken image file exists { if( !mBrokenImageUrl.empty() )