projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[dali_2.3.27] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
visuals
/
animated-image
/
fixed-image-cache.h
diff --git
a/dali-toolkit/internal/visuals/animated-image/fixed-image-cache.h
b/dali-toolkit/internal/visuals/animated-image/fixed-image-cache.h
index
62cd174
..
4fc4ecc
100644
(file)
--- a/
dali-toolkit/internal/visuals/animated-image/fixed-image-cache.h
+++ b/
dali-toolkit/internal/visuals/animated-image/fixed-image-cache.h
@@
-91,11
+91,12
@@
public:
private:
/**
private:
/**
- * @brief Check whether the front frame is ready or not.
+ * @brief Check whether the frame is ready or not.
+ * @param[in] frameIndex The frame index to check the frame is ready or not.
*
*
- * @return true if the fr
ont fr
ame is ready
+ * @return true if the frame is ready
*/
*/
- bool IsFr
ontReady(
) const;
+ bool IsFr
ameReady(uint32_t frameIndex
) const;
/**
* @brief Load the next batch of images
/**
* @brief Load the next batch of images
@@
-103,19
+104,21
@@
private:
void LoadBatch();
/**
void LoadBatch();
/**
- * @brief Get the texture set of the front frame.
+ * @brief Get the texture set at the input frame index
+ * @param[in] frameIndex The frame index to retrieve texture set.
*
* @return the texture set of the front of Cache.
*/
*
* @return the texture set of the front of Cache.
*/
- TextureSet Get
FrontTextureSet(
) const;
+ TextureSet Get
TextureSet(uint32_t frameIndex
) const;
/**
* @brief Check if the front frame has become ready - if so, inform observer
*
* @param[in] wasReady Readiness before call.
/**
* @brief Check if the front frame has become ready - if so, inform observer
*
* @param[in] wasReady Readiness before call.
+ * @param[in] frameIndex The frame index for this frame
* @param[in] preMultiplied whether the texture is premultied alpha or not.
*/
* @param[in] preMultiplied whether the texture is premultied alpha or not.
*/
- void
CheckFrontFrame(bool wasReady
, bool preMultiplied);
+ void
MakeReady(bool wasReady, uint32_t frameIndex
, bool preMultiplied);
protected:
/**
protected:
/**
@@
-127,7
+130,7
@@
private:
std::vector<UrlStore>& mImageUrls;
std::vector<bool> mReadyFlags;
std::vector<TextureManager::LoadState> mLoadStates;
std::vector<UrlStore>& mImageUrls;
std::vector<bool> mReadyFlags;
std::vector<TextureManager::LoadState> mLoadStates;
- uint32_t m
Front
;
+ uint32_t m
CurrentFrameIndex
;
};
} //namespace Internal
};
} //namespace Internal