X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fatlas-manager%2Fatlas-manager-impl.h;h=5111a6ba6321787e68a655612144c5caf786d044;hb=b19288c9459456fb4f812add4dd1c372da79e5d8;hp=5336e1b977de9dc0a90ecfac0c9556d282d31674;hpb=c8ed20c22ca545146be5fbde4c36b35c76daac9b;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/atlas-manager/atlas-manager-impl.h b/dali-toolkit/internal/atlas-manager/atlas-manager-impl.h index 5336e1b..5111a6b 100644 --- a/dali-toolkit/internal/atlas-manager/atlas-manager-impl.h +++ b/dali-toolkit/internal/atlas-manager/atlas-manager-impl.h @@ -68,7 +68,8 @@ public: PixelBuffer* mStripBuffer; // Blank image buffer used to pad upload Material mMaterial; // material used for atlas texture Sampler mSampler; // sampler used for atlas texture - SizeType mNextFreeBlock; // next free block will be placed here ( actually +1 ) + SizeType mTotalBlocks; // total number of blocks in atlas + SizeType mAvailableBlocks; // number of blocks available in atlas Dali::Vector< SizeType > mFreeBlocksList; // unless there are any previously freed blocks }; @@ -112,7 +113,8 @@ public: */ void GenerateMeshData( ImageId id, const Vector2& position, - Toolkit::AtlasManager::Mesh2D& mesh ); + Toolkit::AtlasManager::Mesh2D& mesh, + bool addReference ); /** * @copydoc Toolkit::AtlasManager::StitchMesh @@ -202,8 +204,7 @@ private: SizeType width, SizeType height, Pixel::Format pixelFormat, - SizeType& blockArea, - SizeType& totalBlocks ); + SizeType& blockArea ); void CreateMesh( SizeType atlas, SizeType imageWidth,