X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Frendering%2Fatlas%2Fatlas-manager-impl.h;h=ed51450db9a1855bbf0d1603a009fdf3e2c85d08;hb=6b0ebeb01bd36475054ec211311763cd82390dd1;hp=e86bda1184ebcfcb7b035c93d4046003c993decb;hpb=eb52cb9cbb74e37ebdc1c18619af597e2b595b08;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/rendering/atlas/atlas-manager-impl.h b/dali-toolkit/internal/text/rendering/atlas/atlas-manager-impl.h index e86bda1..ed51450 100644 --- a/dali-toolkit/internal/text/rendering/atlas/atlas-manager-impl.h +++ b/dali-toolkit/internal/text/rendering/atlas/atlas-manager-impl.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_ATLAS_MANAGER_IMPL_H__ -#define __DALI_TOOLKIT_ATLAS_MANAGER_IMPL_H__ +#ifndef DALI_TOOLKIT_ATLAS_MANAGER_IMPL_H +#define DALI_TOOLKIT_ATLAS_MANAGER_IMPL_H /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,11 +59,11 @@ public: */ struct AtlasDescriptor { - Dali::Atlas mAtlas; // atlas image + Dali::Texture mAtlas; // atlas image Toolkit::AtlasManager::AtlasSize mSize; // size of atlas Pixel::Format mPixelFormat; // pixel format used by atlas - BufferImage mHorizontalStrip; // Image used to pad upload - BufferImage mVerticalStrip; // Image used to pad upload + PixelData mHorizontalStrip; // Image used to pad upload + PixelData mVerticalStrip; // Image used to pad upload TextureSet mTextureSet; // Texture set used for atlas texture SizeType mTotalBlocks; // total number of blocks in atlas SizeType mAvailableBlocks; // number of blocks available in atlas @@ -101,7 +101,7 @@ public: /** * @copydoc Toolkit::AtlasManager::Add */ - bool Add( const BufferImage& image, + bool Add( const PixelData& image, Toolkit::AtlasManager::AtlasSlot& slot, Toolkit::AtlasManager::AtlasId atlas ); @@ -121,7 +121,7 @@ public: /** * @copydoc Toolkit::AtlasManager::GetAtlasContainer */ - Dali::Atlas GetAtlasContainer( AtlasId atlas ) const; + Dali::Texture GetAtlasContainer( AtlasId atlas ) const; /** * @copydoc Toolkit::AtlasManager::GetAtlas @@ -178,14 +178,14 @@ private: std::vector< AtlasDescriptor > mAtlasList; // List of atlases created Vector< AtlasSlotDescriptor > mImageList; // List of bitmaps stored in atlases Toolkit::AtlasManager::AtlasSize mNewAtlasSize; // Atlas size to use in next creation - Toolkit::AtlasManager::AddFailPolicy mAddFailPolicy; // Policy for faling to add an Image + Toolkit::AtlasManager::AddFailPolicy mAddFailPolicy; // Policy for failing to add an Image SizeType CheckAtlas( SizeType atlas, SizeType width, SizeType height, Pixel::Format pixelFormat ); - void UploadImage( const BufferImage& image, + void UploadImage( const PixelData& image, const AtlasSlotDescriptor& desc ); }; @@ -215,4 +215,4 @@ inline Internal::AtlasManager& GetImplementation(Toolkit::AtlasManager& manager) } // namespace Dali - #endif // __DALI_TOOLKIT_ATLAS_MANAGER_IMPL_H__ + #endif // DALI_TOOLKIT_ATLAS_MANAGER_IMPL_H