namespace Internal
{
-class ImageCache
+class ImageCache : public TextureManager::LifecycleObserver
{
public:
/**
*/
virtual TextureSet NextFrame() = 0;
+private:
+ /**
+ * Called before the texture manager is destroyed.
+ */
+ virtual void TextureManagerDestroyed() override final;
+
protected:
TextureManager& mTextureManager;
FrameReadyObserver& mObserver;
unsigned int mUrlIndex;
bool mWaitingForReadyFrame:1;
bool mRequestingLoad:1;
+ bool mTextureManagerAlive:1;
};
} //namespace Internal