X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftexture-manager%2Ftexture-manager-impl.h;h=a75309951653a68fd56677f14601106ab366888a;hb=a496a490042ed29ce607661474d00bd0bc9b2e3b;hp=68bf1650c4bd7def5928815d60a9e18c030affb6;hpb=e0f009740dce868d2fea94553eaab7cb2303c4b5;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/texture-manager/texture-manager-impl.h b/dali-toolkit/internal/texture-manager/texture-manager-impl.h index 68bf165..a753099 100644 --- a/dali-toolkit/internal/texture-manager/texture-manager-impl.h +++ b/dali-toolkit/internal/texture-manager/texture-manager-impl.h @@ -186,7 +186,8 @@ public: * @param[in] samplingMode The SamplingMode to use * @param[in, out] maskInfo Mask info structure * @param[in] synchronousLoading true if the URL should be loaded synchronously - * @param[out] textureId, The textureId of the URL + * @param[in, out] textureId The textureId of the URL. It is also be used to check the previous textureId + * what requestor had. It will be used only ReloadPolicy::FORCED for now. * @param[out] textureRect The rectangle within the texture atlas that this URL occupies, * this is the rectangle in normalized coordinates. * @param[out] textureRectSize The rectangle within the texture atlas that this URL occupies, @@ -365,6 +366,7 @@ public: // Load Request API TextureManager::MultiplyOnLoad& preMultiplyOnLoad, const bool& synchronousLoading = false); +private: // Internal Load Request API /** * @brief Requests an image load of the given URL, when the texture has * have loaded, it will perform a blend with the image mask, and upload @@ -378,6 +380,7 @@ public: // Load Request API * @param[in] url The URL of the image to load * @param[in] maskTextureId The texture id of an image to mask this with * (can be INVALID if no masking required) + * @param[in] previousTextureId The texture id of an image which the requestor already has before * @param[in] contentScale The scale factor to apply to the image before masking * @param[in] desiredSize The size the image is likely to appear at. This can be set to 0,0 for automatic * @param[in] fittingMode The FittingMode to use @@ -402,6 +405,7 @@ public: // Load Request API TextureId RequestLoad( const VisualUrl& url, const TextureManager::TextureId& maskTextureId, + const TextureManager::TextureId& previousTextureId, const float& contentScale, const ImageDimensions& desiredSize, const Dali::FittingMode::Type& fittingMode, @@ -428,7 +432,6 @@ public: // Load Request API StorageType storageType, const bool& synchronousLoading = false); -private: /** * @brief Requests an image load of the given URL, when the texture has * have loaded, if there is a valid maskTextureId, it will perform a @@ -442,6 +445,8 @@ private: * @param[in] url The URL of the image to load * @param[in] maskTextureId The texture id of an image to use as a mask. If no mask is required, then set * to INVALID_TEXTURE_ID + * @param[in] previousTextureId The texture id of an image which the requestor already has before. It will be used + * when reloadPolicy is FORCED. * @param[in] contentScale The scaling factor to apply to the content when masking * @param[in] desiredSize The size the image is likely to appear at. This can be set to 0,0 for automatic * @param[in] fittingMode The FittingMode to use @@ -468,6 +473,7 @@ private: TextureId RequestLoadInternal( const VisualUrl& url, const TextureManager::TextureId& maskTextureId, + const TextureManager::TextureId& previousTextureId, const float& contentScale, const Dali::ImageDimensions& desiredSize, const Dali::FittingMode::Type& fittingMode,