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=8fed2d7c34d752698d05973dbd57677af9edd047;hp=1b383b532c5912f291ae86a6ca26542e6404ce96;hb=dc218b02943379a5fa00bc3fed964e9233bf0e0a;hpb=4464c30c30e68c6eee56cda1a201b22eb164fd20 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 1b383b5..8fed2d7 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 @@ -47,7 +47,10 @@ public: * @param[in] observer FrameReady observer * @param[in] cacheSize The size of the cache * @param[in] batchSize The size of a batch to load + * @param[in] wrapModeU Horizontal Wrap mode + * @param[in] wrapModeV Vertical Wrap mode * @param[in] isSynchronousLoading The flag to define whether to load first frame synchronously + * @param[in] preMultiplyOnLoad The flag if image's color should be multiplied by it's alpha * * This will start loading textures immediately, according to the * batch and cache sizes. @@ -58,7 +61,10 @@ public: ImageCache::FrameReadyObserver& observer, uint16_t cacheSize, uint16_t batchSize, - bool isSynchronousLoading); + const Dali::WrapMode::Type& wrapModeU, + const Dali::WrapMode::Type& wrapModeV, + bool isSynchronousLoading, + bool preMultiplyOnLoad); /** * @brief Destructor @@ -107,12 +113,11 @@ private: * @brief Request to Load a frame * * @param[in] frameIndex index of frame to be loaded. - * @param[in] useCache true if this frame loading uses cache. * @param[in] synchronousLoading true if the frame should be loaded synchronously * * @return the texture set currently loaded. */ - TextureSet RequestFrameLoading(uint32_t frameIndex, bool useCache, bool synchronousLoading); + TextureSet RequestFrameLoading(uint32_t frameIndex, bool synchronousLoading); /** * @brief Load the next batch of images @@ -163,7 +168,6 @@ protected: void LoadComplete(bool loadSuccess, TextureInformation textureInformation) override; private: - /** * Secondary class to hold readiness and index into url */ @@ -172,16 +176,20 @@ private: uint32_t mFrameNumber = 0u; bool mReady = false; }; + std::vector mTextureIds; + VisualUrl mImageUrl; Dali::AnimatedImageLoading mAnimatedImageLoading; uint32_t mFrameCount; uint32_t mFrameIndex; uint32_t mCacheSize; - std::vector mImageUrls; std::vector mIntervals; std::vector mLoadWaitingQueue; CircularQueue mQueue; + Dali::WrapMode::Type mWrapModeU : 3; + Dali::WrapMode::Type mWrapModeV : 3; bool mIsSynchronousLoading; + bool mPreMultiplyOnLoad; }; } // namespace Internal