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

Unified Diff: cc/CCPrioritizedTexture.h

Issue 11079007: Fix issue incremental upload can evict textures being drawn (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 8 years, 2 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 519934f15c523e344186b815d351cbf0d62a6d90..bec85193feb3cfa44a9de998dd2955e93ef27333 100644
--- a/cc/CCPrioritizedTexture.h
+++ b/cc/CCPrioritizedTexture.h
@@ -89,11 +89,13 @@ private:
Backing(unsigned id, CCResourceProvider*, IntSize, GC3Denum format);
~Backing();
void updatePriority();
+ void updateInDrawingImplTree();
CCPrioritizedTexture* owner() { return m_owner; }
- bool hadOwnerAtLastPriorityUpdate() const { return m_ownerExistedAtLastPriorityUpdate; }
+ bool canBeRecycled() const;
int requestPriorityAtLastPriorityUpdate() const { return m_priorityAtLastPriorityUpdate; }
bool wasAbovePriorityCutoffAtLastPriorityUpdate() const { return m_wasAbovePriorityCutoffAtLastPriorityUpdate; }
+ bool inDrawingImplTree() const { return m_inDrawingImplTree; }
void deleteResource(CCResourceProvider*);
bool resourceHasBeenDeleted() const;
@@ -102,8 +104,11 @@ private:
friend class CCPrioritizedTexture;
CCPrioritizedTexture* m_owner;
int m_priorityAtLastPriorityUpdate;
- bool m_ownerExistedAtLastPriorityUpdate;
bool m_wasAbovePriorityCutoffAtLastPriorityUpdate;
+
+ // Set if this is currently-drawing impl tree.
+ bool m_inDrawingImplTree;
+
bool m_resourceHasBeenDeleted;
#ifndef NDEBUG
CCResourceProvider* m_resourceProvider;

Powered by Google App Engine
This is Rietveld 408576698