X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fanimated-image%2Ffixed-image-cache.h;h=bd232b44ee852b51be79e9723083a78e1c5d6ae2;hb=ec1db95268e1cf8e8bd893027d45a19c64b32848;hp=d884e283fe6bb9968eecaca7962de5d4c343d325;hpb=a00bbe499550a054e6692eb46b32f8c1548f3647;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git 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 d884e28..bd232b4 100644 --- a/dali-toolkit/internal/visuals/animated-image/fixed-image-cache.h +++ b/dali-toolkit/internal/visuals/animated-image/fixed-image-cache.h @@ -46,7 +46,7 @@ public: ImageCache::FrameReadyObserver& observer, unsigned int batchSize ); - virtual ~FixedImageCache(); + ~FixedImageCache() override; /** * Get the Nth frame. If it's not ready, this will trigger the @@ -63,10 +63,20 @@ public: /** * Get the next frame. If it's not ready, this will trigger the * sending of FrameReady() when the image becomes ready. - * This will trigger the loading of the next batch. */ TextureSet NextFrame() override; + /** + * Get the interval of Nth frame. + */ + 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; + private: /** * @return true if the front frame is ready