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

Unified Diff: cc/CCPrioritizedTexture.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: 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
Index: cc/CCPrioritizedTexture.h
diff --git a/cc/CCPrioritizedTexture.h b/cc/CCPrioritizedTexture.h
index a65a782d06d311ffe83c908e8637b55eb23e2b1b..4994359e90750c3b1ac2eb277526d74d479e3a81 100644
--- a/cc/CCPrioritizedTexture.h
+++ b/cc/CCPrioritizedTexture.h
@@ -52,6 +52,8 @@ public:
// taken away "soon".
bool haveBackingTexture() const { return !!backing(); }
+ bool backingResourceWasEvicted() const { return m_backing ? m_backing->resourceHasBeenDeleted() : false; }
jamesr 2012/09/19 18:56:37 a ternary is about the place where I'd prefer putt
ccameron 2012/09/19 20:52:02 Fixed
+
// If canAcquireBackingTexture() is true acquireBackingTexture() will acquire
// a backing texture for use. Call this whenever the texture is actually needed.
void acquireBackingTexture(CCResourceProvider*);
@@ -94,12 +96,16 @@ private:
bool requestPriorityAtLastPriorityUpdate() const { return m_priorityAtLastPriorityUpdate; }
bool wasAbovePriorityCutoffAtLastPriorityUpdate() const { return m_wasAbovePriorityCutoffAtLastPriorityUpdate; }
+ void deleteResource(CCResourceProvider*);
+ bool resourceHasBeenDeleted() const;
+
private:
friend class CCPrioritizedTexture;
CCPrioritizedTexture* m_owner;
int m_priorityAtLastPriorityUpdate;
bool m_ownerExistedAtLastPriorityUpdate;
bool m_wasAbovePriorityCutoffAtLastPriorityUpdate;
+ bool m_resourceHasBeenDeleted;
};
CCPrioritizedTexture(CCPrioritizedTextureManager*, IntSize, GC3Denum format);
« no previous file with comments | « cc/CCLayerTreeHost.cpp ('k') | cc/CCPrioritizedTexture.cpp » ('j') | cc/CCPrioritizedTexture.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698