X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftexture-manager%2Ftexture-cache-manager.h;h=c1f1355ed4e27964e4ec23d3cd3959eda7c5fed7;hp=ac70426aa546156b148448124c0858cbfc3716d1;hb=2bba756a645043d8c1c4023a75966401d531827c;hpb=1ca353dc14d04ecc3a36ece4669bfffe35ff4984 diff --git a/dali-toolkit/internal/texture-manager/texture-cache-manager.h b/dali-toolkit/internal/texture-manager/texture-cache-manager.h index ac70426..c1f1355 100644 --- a/dali-toolkit/internal/texture-manager/texture-cache-manager.h +++ b/dali-toolkit/internal/texture-manager/texture-cache-manager.h @@ -102,7 +102,7 @@ public: /** * @brief Get the current state of a texture * @note This API doesn't consider encodedimagebuffer. - * @param[in] textureId The texture id to query + * @param[in] textureId The texture id to query.defaul value is 0. * @return The loading state if the texture is valid, or NOT_STARTED if the textureId * is not valid. */ @@ -120,9 +120,10 @@ public: /** * @brief Get the associated texture set if the texture id is valid * @param[in] textureId The texture Id to look up - * @return the associated texture set, or an empty handle if textureId is not valid + * @param[in] textureIndex The texture index to query + * @return the associated texture, or an empty handle if textureId is not valid */ - TextureSet GetTextureSet(const TextureCacheManager::TextureId& textureId); + Texture GetTexture(const TextureCacheManager::TextureId& textureId, uint32_t textureIndex = 0); /** * @brief Get the external texture set if the texture id is valid @@ -230,6 +231,7 @@ public: * @param[in] fittingMode The FittingMode to use * @param[in] samplingMode The SamplingMode to use * @param[in] useAtlas True if atlased + * @param[in] storageType Whether the pixel data is stored in the cache or uploaded to the GPU * @param[in] maskTextureId Optional texture ID to use to mask this image * @param[in] cropToMask True if crop to mask * @param[in] preMultiplyOnLoad if the image's color should be multiplied by it's alpha. Set to OFF if there is no alpha. @@ -244,6 +246,7 @@ public: const Dali::FittingMode::Type& fittingMode, const Dali::SamplingMode::Type& samplingMode, const TextureCacheManager::UseAtlas& useAtlas, + const StorageType& storageType, const TextureCacheManager::TextureId& maskTextureId, const bool& cropToMask, const TextureCacheManager::MultiplyOnLoad& preMultiplyOnLoad, @@ -267,9 +270,9 @@ public: * Textures are cached and therefore only the removal of the last * occurrence of a Texture will cause its removal internally. * - * @param[in] textureId The Id of the Texture to remove at Cache. + * @param[in] textureInfo TextureInfo that want to cache in container. */ - void RemoveCache(const TextureCacheManager::TextureId& textureId); + void RemoveCache(TextureCacheManager::TextureInfo& textureInfo); public: /**