| Index: cc/CCPrioritizedTextureManager.cpp
|
| diff --git a/cc/CCPrioritizedTextureManager.cpp b/cc/CCPrioritizedTextureManager.cpp
|
| index 584d6caa5663ac5db846252479b8f34b779e249e..3768fb1855ac6405601dac3e980f2b2d31f9769a 100644
|
| --- a/cc/CCPrioritizedTextureManager.cpp
|
| +++ b/cc/CCPrioritizedTextureManager.cpp
|
| @@ -173,9 +173,6 @@ void CCPrioritizedTextureManager::acquireBackingTextureIfNeeded(CCPrioritizedTex
|
| if (texture->backing() || !texture->isAbovePriorityCutoff())
|
| return;
|
|
|
| - // Make sure that the backings list is up to date and sorted before traversing it.
|
| - updateBackingsPriorities();
|
| -
|
| // Find a backing below, by either recycling or allocating.
|
| CCPrioritizedTexture::Backing* backing = 0;
|
|
|
| @@ -227,9 +224,6 @@ void CCPrioritizedTextureManager::reduceMemory(CCResourceProvider* resourceProvi
|
| {
|
| ASSERT(CCProxy::isImplThread() && CCProxy::isMainThreadBlocked());
|
|
|
| - // Make sure that the backings list is up to date and sorted before traversing it.
|
| - updateBackingsPriorities();
|
| -
|
| evictBackingsToReduceMemory(m_memoryAvailableBytes, RespectManagerPriorityCutoff, resourceProvider);
|
| ASSERT(memoryUseBytes() <= maxMemoryLimitBytes());
|
|
|
| @@ -240,7 +234,7 @@ void CCPrioritizedTextureManager::reduceMemory(CCResourceProvider* resourceProvi
|
| // backing textures (any more than 10%).
|
| size_t wastedMemory = 0;
|
| for (BackingSet::iterator it = m_backings.begin(); it != m_backings.end(); ++it) {
|
| - if ((*it)->owner())
|
| + if ((*it)->hadOwnerAtLastPriorityUpdate())
|
| break;
|
| wastedMemory += (*it)->bytes();
|
| }
|
|
|