X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fanimated-image%2Frolling-animated-image-cache.h;h=595adc020790d3b8ba5610af4392f8009007d7eb;hp=8281c323f45a52fc9e3f85c152377b0babb91c1b;hb=8c45458b64211285df3df591dfcb628126a1bc0e;hpb=43ca048f4200d2f1d6e59c2163af59cd99a45b2e diff --git a/dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.h b/dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.h index 8281c32..595adc0 100644 --- a/dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.h +++ b/dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.h @@ -64,7 +64,7 @@ public: /** * Destructor */ - virtual ~RollingAnimatedImageCache(); + ~RollingAnimatedImageCache() override; /** * Get the Nth frame. If it's not ready, this will trigger the @@ -79,9 +79,26 @@ public: TextureSet FirstFrame() override; /** + * Get the next frame. If it's not ready, this will trigger the + * sending of FrameReady() when the image becomes ready. + */ + TextureSet NextFrame() override; + + /** * Get the interval of Nth frame. */ - uint32_t GetFrameInterval( uint32_t frameIndex ) override; + uint32_t GetFrameInterval( uint32_t frameIndex ) const override; + + /** + * Get the current rendered frame index. + * If there isn't any loaded frame, returns -1. + */ + int32_t GetCurrentFrameIndex() const override; + + /** + * Get total frame count of the animated image file. + */ + int32_t GetTotalFrameCount() const override; private: /** @@ -149,6 +166,7 @@ private: Dali::AnimatedImageLoading mAnimatedImageLoading; uint32_t mFrameCount; int mFrameIndex; + int mCacheSize; std::vector mImageUrls; std::vector mIntervals; std::vector mLoadWaitingQueue;