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

Side by Side Diff: cc/CCLayerTreeHost.cpp

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/CCLayerTreeHost.h ('k') | cc/CCPrioritizedTexture.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "CCLayerTreeHost.h" 7 #include "CCLayerTreeHost.h"
8 8
9 #include "CCFontAtlas.h" 9 #include "CCFontAtlas.h"
10 #include "CCGraphicsContext.h" 10 #include "CCGraphicsContext.h"
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 m_proxy->setVisible(visible); 398 m_proxy->setVisible(visible);
399 } 399 }
400 400
401 void CCLayerTreeHost::reduceContentsTexturesMemoryOnImplThread(size_t limitBytes , CCResourceProvider* resourceProvider) 401 void CCLayerTreeHost::reduceContentsTexturesMemoryOnImplThread(size_t limitBytes , CCResourceProvider* resourceProvider)
402 { 402 {
403 ASSERT(CCProxy::isImplThread()); 403 ASSERT(CCProxy::isImplThread());
404 ASSERT(m_contentsTextureManager.get()); 404 ASSERT(m_contentsTextureManager.get());
405 m_contentsTextureManager->reduceMemoryOnImplThread(limitBytes, resourceProvi der); 405 m_contentsTextureManager->reduceMemoryOnImplThread(limitBytes, resourceProvi der);
406 } 406 }
407 407
408 bool CCLayerTreeHost::evictedContentsTexturesBackingsExist() const
409 {
410 ASSERT(CCProxy::isImplThread());
411 ASSERT(m_contentsTextureManager.get());
412 return m_contentsTextureManager->evictedBackingsExist();
413 }
414
408 void CCLayerTreeHost::getEvictedContentTexturesBackings(CCPrioritizedTextureMana ger::BackingVector& evictedBackings) 415 void CCLayerTreeHost::getEvictedContentTexturesBackings(CCPrioritizedTextureMana ger::BackingVector& evictedBackings)
409 { 416 {
410 ASSERT(CCProxy::isImplThread()); 417 ASSERT(CCProxy::isImplThread());
411 evictedBackings.clear(); 418 evictedBackings.clear();
412 if (m_rendererInitialized) 419 if (m_rendererInitialized)
413 m_contentsTextureManager->getEvictedBackings(evictedBackings); 420 m_contentsTextureManager->getEvictedBackings(evictedBackings);
414 } 421 }
415 422
416 void CCLayerTreeHost::unlinkEvictedContentTexturesBackings(const CCPrioritizedTe xtureManager::BackingVector& evictedBackings) 423 void CCLayerTreeHost::unlinkEvictedContentTexturesBackings(const CCPrioritizedTe xtureManager::BackingVector& evictedBackings)
417 { 424 {
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 else 813 else
807 layer->notifyAnimationFinished(wallClockTime); 814 layer->notifyAnimationFinished(wallClockTime);
808 } 815 }
809 } 816 }
810 817
811 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex) 818 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex)
812 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime); 819 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime);
813 } 820 }
814 821
815 } // namespace cc 822 } // namespace cc
OLDNEW
« no previous file with comments | « cc/CCLayerTreeHost.h ('k') | cc/CCPrioritizedTexture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698