OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |