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); |