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

Unified Diff: cc/CCPrioritizedTextureManager.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
Index: cc/CCPrioritizedTextureManager.h
diff --git a/cc/CCPrioritizedTextureManager.h b/cc/CCPrioritizedTextureManager.h
index 52b35d68d2b4696100cf9e74c19693b05392af7c..4bb8a3a662da17cbce9b605dff03835cb3d3a298 100644
--- a/cc/CCPrioritizedTextureManager.h
+++ b/cc/CCPrioritizedTextureManager.h
@@ -57,10 +57,11 @@ public:
void clearPriorities();
void reduceMemoryOnImplThread(size_t limitBytes, CCResourceProvider*);
+ bool evictedBackingsExist() const { return !m_evictedBackings.isEmpty(); }
void getEvictedBackings(BackingVector& evictedBackings);
void unlinkEvictedBackings(const BackingVector& evictedBackings);
// Deletes all evicted backings, unlinking them from their owning textures if needed.
- // Returns true if this function to unlinked any backings from their owning texture while
+ // Returns true if this function unlinked any backings from their owning texture while
// destroying them.
bool deleteEvictedBackings();

Powered by Google App Engine
This is Rietveld 408576698