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

Side by Side Diff: cc/CCLayerTreeHost.h

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 | « no previous file | cc/CCLayerTreeHost.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 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 #ifndef CCLayerTreeHost_h 5 #ifndef CCLayerTreeHost_h
6 #define CCLayerTreeHost_h 6 #define CCLayerTreeHost_h
7 7
8 #include "CCAnimationEvents.h" 8 #include "CCAnimationEvents.h"
9 #include "CCGraphicsContext.h" 9 #include "CCGraphicsContext.h"
10 #include "CCLayerTreeHostClient.h" 10 #include "CCLayerTreeHostClient.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 void setBackgroundColor(SkColor color) { m_backgroundColor = color; } 188 void setBackgroundColor(SkColor color) { m_backgroundColor = color; }
189 189
190 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro und = transparent; } 190 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro und = transparent; }
191 191
192 CCPrioritizedTextureManager* contentsTextureManager() const; 192 CCPrioritizedTextureManager* contentsTextureManager() const;
193 193
194 // Delete contents textures' backing resources until they use only bytesLimi t bytes. This may 194 // Delete contents textures' backing resources until they use only bytesLimi t bytes. This may
195 // be called on the impl thread while the main thread is running. 195 // be called on the impl thread while the main thread is running.
196 void reduceContentsTexturesMemoryOnImplThread(size_t bytesLimit, CCResourceP rovider*); 196 void reduceContentsTexturesMemoryOnImplThread(size_t bytesLimit, CCResourceP rovider*);
197 // Returns true if there any evicted backing textures that have not been del eted.
198 bool evictedContentsTexturesBackingsExist() const;
197 // Retrieve the list of all contents textures' backings that have been evict ed, to pass to the 199 // Retrieve the list of all contents textures' backings that have been evict ed, to pass to the
198 // main thread to unlink them from their owning textures. 200 // main thread to unlink them from their owning textures.
199 void getEvictedContentTexturesBackings(CCPrioritizedTextureManager::BackingV ector&); 201 void getEvictedContentTexturesBackings(CCPrioritizedTextureManager::BackingV ector&);
200 // Unlink the list of contents textures' backings from their owning textures on the main thread 202 // Unlink the list of contents textures' backings from their owning textures on the main thread
201 // before updating layers. 203 // before updating layers.
202 void unlinkEvictedContentTexturesBackings(const CCPrioritizedTextureManager: :BackingVector&); 204 void unlinkEvictedContentTexturesBackings(const CCPrioritizedTextureManager: :BackingVector&);
203 // Deletes all evicted backings, unlinking them from their owning textures i f needed. 205 // Deletes all evicted backings, unlinking them from their owning textures i f needed.
204 // Returns true if this function had to unlink any backings from their ownin g texture when 206 // Returns true if this function had to unlink any backings from their ownin g texture when
205 // destroying them. If this was the case, the impl layer tree may contain in valid resources. 207 // destroying them. If this was the case, the impl layer tree may contain in valid resources.
206 bool deleteEvictedContentTexturesBackings(); 208 bool deleteEvictedContentTexturesBackings();
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 297
296 TextureList m_deleteTextureAfterCommitList; 298 TextureList m_deleteTextureAfterCommitList;
297 size_t m_partialTextureUpdateRequests; 299 size_t m_partialTextureUpdateRequests;
298 300
299 static bool s_needsFilterContext; 301 static bool s_needsFilterContext;
300 }; 302 };
301 303
302 } 304 }
303 305
304 #endif 306 #endif
OLDNEW
« no previous file with comments | « no previous file | cc/CCLayerTreeHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698