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

Side by Side Diff: cc/CCPrioritizedTextureManager.h

Issue 10919227: Roll in CC changes up to 128196 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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.cpp ('k') | cc/CCPrioritizedTextureManager.cpp » ('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 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
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
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
OLDNEW
« no previous file with comments | « cc/CCLayerTreeHost.cpp ('k') | cc/CCPrioritizedTextureManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698