X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fanimated-image%2Fimage-cache.h;h=ef1efedd2468e81514b7a2a3cdf311c5d60d5046;hb=19c7495f5e82eb301e7af38370ea2897e7324b7b;hp=12e89e9313241458f40a6dff254218874649c0cf;hpb=4d305b893731daafafc293b92dc4fa25a896e929;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 12e89e9..ef1efed 100644 --- a/dali-toolkit/internal/visuals/animated-image/image-cache.h +++ b/dali-toolkit/internal/visuals/animated-image/image-cache.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_IMAGE_CACHE_H /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ namespace Toolkit namespace Internal { -class ImageCache : public TextureUploadObserver +class ImageCache : public TextureManager::LifecycleObserver { public: /** @@ -67,7 +67,6 @@ public: * batch and cache sizes. The cache is as large as the number of urls. */ ImageCache( TextureManager& textureManager, - UrlList& urlList, ImageCache::FrameReadyObserver& observer, unsigned int batchSize ); @@ -86,14 +85,21 @@ public: */ virtual TextureSet NextFrame() = 0; +private: + + /** + * Called before the texture manager is destroyed. + */ + void TextureManagerDestroyed() final; + protected: TextureManager& mTextureManager; FrameReadyObserver& mObserver; - std::vector& mImageUrls; unsigned int mBatchSize; unsigned int mUrlIndex; bool mWaitingForReadyFrame:1; bool mRequestingLoad:1; + bool mTextureManagerAlive:1; }; } //namespace Internal