Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Unified Diff: cc/LayerTextureUpdater.h

Issue 10947017: Enable removing uploads to evicted textures from texture upload queues. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/CCThreadProxy.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) { }
« no previous file with comments | « cc/CCThreadProxy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698