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

Unified Diff: cc/base/list_container.h

Issue 1226503006: cc: More consistent reasoning about display list memory usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: capacity unit test Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/base/list_container.cc » ('j') | cc/debug/rasterize_and_record_benchmark.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/list_container.h
diff --git a/cc/base/list_container.h b/cc/base/list_container.h
index 7cccc6707c4e67ad51af61e045119eace5866ffb..ae7afa92e5b5999c8a124c418ff9b33a90028115 100644
--- a/cc/base/list_container.h
+++ b/cc/base/list_container.h
@@ -163,6 +163,8 @@ class CC_EXPORT ListContainerBase {
size_t MaxSizeForDerivedClass() const;
+ size_t GetCapacityInBytes() const;
+
// Unlike the ListContainer method, this one does not invoke element
// destructors.
void clear();
@@ -310,6 +312,7 @@ class ListContainer : public ListContainerBase {
using ListContainerBase::size;
using ListContainerBase::empty;
+ using ListContainerBase::GetCapacityInBytes;
void clear() {
for (Iterator i = begin(); i != end(); ++i) {
« no previous file with comments | « no previous file | cc/base/list_container.cc » ('j') | cc/debug/rasterize_and_record_benchmark.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698