X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fanimated-image%2Fimage-cache.h;h=adb6e580524736c4bf44ed0497de8642b45e6102;hb=02557f62f8d171115d885c87c138faec2a3cb923;hp=1d385c8ea00261a26d320e9bb4a542efed1057d1;hpb=da6b7205afe6a54fb1caf7a765008948a57f45eb;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/animated-image/image-cache.h b/dali-toolkit/internal/visuals/animated-image/image-cache.h index 1d385c8..adb6e58 100644 --- a/dali-toolkit/internal/visuals/animated-image/image-cache.h +++ b/dali-toolkit/internal/visuals/animated-image/image-cache.h @@ -79,6 +79,12 @@ public: virtual TextureSet FirstFrame() = 0; /** + * Get the next frame. If it's not ready, this will trigger the + * sending of FrameReady() when the image becomes ready. + */ + virtual TextureSet NextFrame() = 0; + + /** * Get the Nth frame. If it's not ready, this will trigger the * sending of FrameReady() when the image becomes ready. */ @@ -87,7 +93,18 @@ public: /** * Get the interval of Nth frame. */ - virtual uint32_t GetFrameInterval( uint32_t frameIndex ) = 0; + virtual uint32_t GetFrameInterval( uint32_t frameIndex ) const = 0; + + /** + * Get the current rendered frame index. + * If there isn't any loaded frame, returns -1. + */ + virtual int32_t GetCurrentFrameIndex() const = 0; + + /** + * Get total frame count of the animated image file. + */ + virtual int32_t GetTotalFrameCount() const = 0; private: