OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef CCPrioritizedTextureManager_h | 5 #ifndef CCPrioritizedTextureManager_h |
6 #define CCPrioritizedTextureManager_h | 6 #define CCPrioritizedTextureManager_h |
7 | 7 |
8 #include "CCPrioritizedTexture.h" | 8 #include "CCPrioritizedTexture.h" |
9 #include "CCPriorityCalculator.h" | 9 #include "CCPriorityCalculator.h" |
10 #include "CCTexture.h" | 10 #include "CCTexture.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void setMaxMemoryLimitBytes(size_t bytes) { m_maxMemoryLimitBytes = bytes; } | 51 void setMaxMemoryLimitBytes(size_t bytes) { m_maxMemoryLimitBytes = bytes; } |
52 size_t maxMemoryLimitBytes() const { return m_maxMemoryLimitBytes; } | 52 size_t maxMemoryLimitBytes() const { return m_maxMemoryLimitBytes; } |
53 | 53 |
54 void prioritizeTextures(); | 54 void prioritizeTextures(); |
55 void clearPriorities(); | 55 void clearPriorities(); |
56 | 56 |
57 bool requestLate(CCPrioritizedTexture*); | 57 bool requestLate(CCPrioritizedTexture*); |
58 | 58 |
59 void reduceMemory(CCResourceProvider*); | 59 void reduceMemory(CCResourceProvider*); |
60 void clearAllMemory(CCResourceProvider*); | 60 void clearAllMemory(CCResourceProvider*); |
61 void allBackingTexturesWereDeleted(); | 61 void unlinkAllBackings(); |
| 62 void deleteAllUnlinkedBackings(); |
62 | 63 |
63 void acquireBackingTextureIfNeeded(CCPrioritizedTexture*, CCResourceProvider
*); | 64 void acquireBackingTextureIfNeeded(CCPrioritizedTexture*, CCResourceProvider
*); |
64 | 65 |
65 void registerTexture(CCPrioritizedTexture*); | 66 void registerTexture(CCPrioritizedTexture*); |
66 void unregisterTexture(CCPrioritizedTexture*); | 67 void unregisterTexture(CCPrioritizedTexture*); |
67 void returnBackingTexture(CCPrioritizedTexture*); | 68 void returnBackingTexture(CCPrioritizedTexture*); |
68 | 69 |
69 #if !ASSERT_DISABLED | 70 #if !ASSERT_DISABLED |
70 void assertInvariants(); | 71 void assertInvariants(); |
71 #endif | 72 #endif |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 TextureSet m_textures; | 111 TextureSet m_textures; |
111 BackingSet m_backings; | 112 BackingSet m_backings; |
112 | 113 |
113 TextureVector m_tempTextureVector; | 114 TextureVector m_tempTextureVector; |
114 BackingVector m_tempBackingVector; | 115 BackingVector m_tempBackingVector; |
115 }; | 116 }; |
116 | 117 |
117 } // WebCore | 118 } // WebCore |
118 | 119 |
119 #endif | 120 #endif |
OLD | NEW |