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
Add CURRENT_FRAME_NUMBER and TOTAL_FRAME_NUMBER properties to the AnimatedImageVisual
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
visuals
/
animated-image
/
rolling-animated-image-cache.cpp
diff --git
a/dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.cpp
b/dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.cpp
index
2733d7a
..
565252f
100644
(file)
--- a/
dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.cpp
+++ b/
dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.cpp
@@
-192,6
+192,11
@@
int32_t RollingAnimatedImageCache::GetCurrentFrameIndex() const
return mQueue.Front().mFrameNumber;
}
+int32_t RollingAnimatedImageCache::GetTotalFrameCount() const
+{
+ return mFrameCount;
+}
+
bool RollingAnimatedImageCache::IsFrontReady() const
{
return ( !mQueue.IsEmpty() && mQueue.Front().mReady );