Index: cc/LayerTextureUpdater.h |
diff --git a/cc/LayerTextureUpdater.h b/cc/LayerTextureUpdater.h |
index a8e649d661da69ee1377b2a78dd627c3a12bd094..7670fdef7668baad6937af7cc0b891e30a1aced0 100644 |
--- a/cc/LayerTextureUpdater.h |
+++ b/cc/LayerTextureUpdater.h |
@@ -30,6 +30,7 @@ public: |
void swapTextureWith(OwnPtr<CCPrioritizedTexture>& texture) { m_texture.swap(texture); } |
virtual void prepareRect(const IntRect& /* sourceRect */, CCRenderingStats&) { } |
virtual void updateRect(CCResourceProvider*, const IntRect& sourceRect, const IntSize& destOffset) = 0; |
+ virtual bool backingResourceWasEvicted() const { return m_texture->backingResourceWasEvicted(); } |
protected: |
explicit Texture(PassOwnPtr<CCPrioritizedTexture> texture) : m_texture(texture) { } |