X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=blobdiff_plain;f=dali%2Finternal%2Ftext%2Ftext-abstraction%2Ffont-client-plugin-impl.h;h=4de27b70fab2879b6adf39d658e60242195e7b1c;hp=3ada20cb08d09109cf7a0c31a58c3a4ccd2b3bed;hb=5a81079170460ac882570328b9daf0208deda1b1;hpb=cb391804cdde7f832157f8cf982782d2fa94168c diff --git a/dali/internal/text/text-abstraction/font-client-plugin-impl.h b/dali/internal/text/text-abstraction/font-client-plugin-impl.h index 3ada20c..4de27b7 100644 --- a/dali/internal/text/text-abstraction/font-client-plugin-impl.h +++ b/dali/internal/text/text-abstraction/font-client-plugin-impl.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_TEXT_ABSTRACTION_FONT_CLIENT_PLUGIN_IMPL_H /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -66,7 +66,7 @@ struct FontClient::Plugin */ struct FallbackCacheItem { - FallbackCacheItem( const FontDescription& fontDescription, FontList* fallbackFonts, CharacterSetList* characterSets ); + FallbackCacheItem( FontDescription&& fontDescription, FontList* fallbackFonts, CharacterSetList* characterSets ); FontDescription fontDescription; ///< The font description. FontList* fallbackFonts; ///< The list of fallback fonts for the given font-description. @@ -80,6 +80,8 @@ struct FontClient::Plugin { FontDescriptionCacheItem( const FontDescription& fontDescription, FontDescriptionId index ); + FontDescriptionCacheItem( FontDescription&& fontDescription, + FontDescriptionId index ); FontDescription fontDescription; ///< The font description. FontDescriptionId index; ///< Index to the vector of font descriptions. @@ -88,11 +90,11 @@ struct FontClient::Plugin /** * @brief Caches the font id of the pair font point size and the index to the vector of font descriptions of validated fonts. */ - struct FontIdCacheItem + struct FontDescriptionSizeCacheItem { - FontIdCacheItem( FontDescriptionId validatedFontId, - PointSize26Dot6 requestedPointSize, - FontId fontId ); + FontDescriptionSizeCacheItem( FontDescriptionId validatedFontId, + PointSize26Dot6 requestedPointSize, + FontId fontId ); FontDescriptionId validatedFontId; ///< Index to the vector with font descriptions. PointSize26Dot6 requestedPointSize; ///< The font point size. @@ -429,8 +431,8 @@ private: * @brief Finds a fallback font list from the cache for a given font-description * * @param[in] fontDescription The font to validate. - * @param[out] A valid pointer to a font list, or NULL if not found. - * @param[out] characterSetList A valid pointer to a character set list, or NULL if not found. + * @param[out] A valid pointer to a font list, or @e nullptr if not found. + * @param[out] characterSetList A valid pointer to a character set list, or @e nullptr if not found. */ bool FindFallbackFontList( const FontDescription& fontDescription, FontList*& fontList, @@ -515,11 +517,11 @@ private: std::vector mFallbackCache; ///< Cached fallback font lists. - std::vector mFontCache; ///< Caches the FreeType face and font metrics of the triplet 'path to the font file name, font point size and face index'. - std::vector mValidatedFontCache; ///< Caches indices to the vector of font descriptions for a given font. - FontList mFontDescriptionCache; ///< Caches font descriptions for the validated font. - CharacterSetList mCharacterSetCache; ///< Caches character set lists for the validated font. - std::vector mFontIdCache; ///< Caches font identifiers for the pairs of font point size and the index to the vector with font descriptions of the validated fonts. + std::vector mFontFaceCache; ///< Caches the FreeType face and font metrics of the triplet 'path to the font file name, font point size and face index'. + std::vector mValidatedFontCache; ///< Caches indices to the vector of font descriptions for a given font. + FontList mFontDescriptionCache; ///< Caches font descriptions for the validated font. + CharacterSetList mCharacterSetCache; ///< Caches character set lists for the validated font. + std::vector mFontDescriptionSizeCache; ///< Caches font identifiers for the pairs of font point size and the index to the vector with font descriptions of the validated fonts. VectorFontCache* mVectorFontCache; ///< Separate cache for vector data blobs etc. Vector mEllipsisCache; ///< Caches ellipsis glyphs for a particular point size.