X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fatlas-manager%2Fatlas-manager.cpp;h=e46eb1da23f850f8203b336802661da27d1b7856;hb=b398ab61279f2fe1e96f7567cecb123c25e2edb1;hp=85d6cba86b4bd5b1cf83af2c60381a9c28a622c5;hpb=3e17d9f63dedb5d669409301f8d9a3d8c393f979;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/atlas-manager/atlas-manager.cpp b/dali-toolkit/internal/atlas-manager/atlas-manager.cpp index 85d6cba..e46eb1d 100644 --- a/dali-toolkit/internal/atlas-manager/atlas-manager.cpp +++ b/dali-toolkit/internal/atlas-manager/atlas-manager.cpp @@ -45,13 +45,9 @@ AtlasManager::AtlasManager(Internal::AtlasManager *impl) { } -AtlasManager::AtlasId AtlasManager::CreateAtlas( SizeType width, - SizeType height, - SizeType blockWidth, - SizeType blockHeight, - Pixel::Format pixelformat ) +AtlasManager::AtlasId AtlasManager::CreateAtlas( const AtlasManager::AtlasSize& size, Pixel::Format pixelformat ) { - return GetImplementation(*this).CreateAtlas( width, height, blockWidth, blockHeight, pixelformat ); + return GetImplementation(*this).CreateAtlas( size, pixelformat ); } void AtlasManager::SetAddPolicy( AddFailPolicy policy ) @@ -105,9 +101,9 @@ AtlasManager::AtlasId AtlasManager::GetAtlas( ImageId id ) return GetImplementation(*this).GetAtlas( id ); } -Vector2 AtlasManager::GetBlockSize( AtlasId atlas ) +const AtlasManager::AtlasSize& AtlasManager::GetAtlasSize( AtlasId atlas ) { - return GetImplementation(*this).GetBlockSize( atlas ); + return GetImplementation(*this).GetAtlasSize( atlas ); } AtlasManager::SizeType AtlasManager::GetFreeBlocks( AtlasId atlas ) @@ -115,10 +111,9 @@ AtlasManager::SizeType AtlasManager::GetFreeBlocks( AtlasId atlas ) return GetImplementation(*this).GetFreeBlocks( atlas ); } -void AtlasManager::SetAtlasSize( const Vector2& size, - const Vector2& blockSize ) +void AtlasManager::SetNewAtlasSize( const AtlasSize& size ) { - GetImplementation(*this).SetAtlasSize( size, blockSize ); + GetImplementation(*this).SetNewAtlasSize( size ); } AtlasManager::SizeType AtlasManager::GetAtlasCount() const @@ -131,6 +126,11 @@ Pixel::Format AtlasManager::GetPixelFormat( AtlasId atlas ) return GetImplementation(*this).GetPixelFormat( atlas ); } +void AtlasManager::GetMetrics( Metrics& metrics ) +{ + return GetImplementation(*this).GetMetrics( metrics ); +} + } // namespace Toolkit } // namespace Dali