X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fatlas-manager%2Fatlas-manager.h;h=532be6f12a097539cd6a8f084c024718d6c52029;hp=79eb9b7a02a45dbffd3b5da57f497591e4f4210f;hb=refs%2Fchanges%2F07%2F43907%2F1;hpb=5cc78df05271786e4c1c18a0eaab32e05612df9d diff --git a/dali-toolkit/internal/atlas-manager/atlas-manager.h b/dali-toolkit/internal/atlas-manager/atlas-manager.h index 79eb9b7..532be6f 100644 --- a/dali-toolkit/internal/atlas-manager/atlas-manager.h +++ b/dali-toolkit/internal/atlas-manager/atlas-manager.h @@ -162,10 +162,10 @@ public: struct AtlasSize { - SizeType mWidth; // width of the atlas in pixels - SizeType mHeight; // height of the atlas in pixels - SizeType mBlockWidth; // width of a block in pixels - SizeType mBlockHeight; // height of a block in pixels + SizeType mWidth; ///< width of the atlas in pixels + SizeType mHeight; ///< height of the atlas in pixels + SizeType mBlockWidth; ///< width of a block in pixels + SizeType mBlockHeight; ///< height of a block in pixels }; /** @@ -174,17 +174,25 @@ public: */ struct AtlasMetricsEntry { - AtlasSize mSize; // size of atlas and blocks - SizeType mBlocksUsed; // number of blocks used in the atlas - SizeType mTotalBlocks; // total blocks used by atlas - Pixel::Format mPixelFormat; // pixel format of the atlas + AtlasSize mSize; ///< size of atlas and blocks + SizeType mBlocksUsed; ///< number of blocks used in the atlas + SizeType mTotalBlocks; ///< total blocks used by atlas + Pixel::Format mPixelFormat; ///< pixel format of the atlas }; struct Metrics { - SizeType mAtlasCount; // number of atlases - SizeType mTextureMemoryUsed; // texture memory used by atlases - Dali::Vector< AtlasMetricsEntry > mAtlasMetrics; // container of atlas information + Metrics() + : mAtlasCount( 0u ), + mTextureMemoryUsed( 0u ) + {} + + ~Metrics() + {} + + SizeType mAtlasCount; ///< number of atlases + SizeType mTextureMemoryUsed; ///< texture memory used by atlases + Dali::Vector< AtlasMetricsEntry > mAtlasMetrics; ///< container of atlas information }; struct Vertex2D @@ -233,8 +241,8 @@ public: */ struct AtlasSlot { - ImageId mImageId; // Id of stored Image - AtlasId mAtlasId; // Id of Atlas containing this slot + ImageId mImageId; ///< Id of stored Image + AtlasId mAtlasId; ///< Id of Atlas containing this slot }; typedef Dali::Vector< AtlasManager::AtlasSlot > slotContainer;