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

Unified Diff: cc/CCPrioritizedTextureManager.cpp

Issue 10915298: Add CCDelegatingRenderer, and corresponding IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang 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
« no previous file with comments | « cc/CCOcclusionTracker.cpp ('k') | cc/CCQuadCuller.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCPrioritizedTextureManager.cpp
diff --git a/cc/CCPrioritizedTextureManager.cpp b/cc/CCPrioritizedTextureManager.cpp
index 584d6caa5663ac5db846252479b8f34b779e249e..54f8ac2e6a8ce3c6ae95c23891b796bb09f12577 100644
--- a/cc/CCPrioritizedTextureManager.cpp
+++ b/cc/CCPrioritizedTextureManager.cpp
@@ -183,7 +183,7 @@ void CCPrioritizedTextureManager::acquireBackingTextureIfNeeded(CCPrioritizedTex
for (BackingSet::iterator it = m_backings.begin(); it != m_backings.end(); ++it) {
if ((*it)->hadOwnerAtLastPriorityUpdate() && (*it)->wasAbovePriorityCutoffAtLastPriorityUpdate())
break;
- if ((*it)->size() == texture->size() && (*it)->format() == texture->format()) {
+ if ((*it)->size() == texture->size() && (*it)->format() == texture->format() && !resourceProvider->inUseByConsumer((*it)->id())) {
backing = (*it);
break;
}
« no previous file with comments | « cc/CCOcclusionTracker.cpp ('k') | cc/CCQuadCuller.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698