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

Unified Diff: cc/base/sidecar_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
Index: cc/base/sidecar_list_container.h
diff --git a/cc/base/sidecar_list_container.h b/cc/base/sidecar_list_container.h
index 842795fad1b3a94d2ea644a89c6fbd99301e5e4e..5135ab1d7d2a8a78d48b5a85ed230abacda6cf6c 100644
--- a/cc/base/sidecar_list_container.h
+++ b/cc/base/sidecar_list_container.h
@@ -47,6 +47,7 @@ class SidecarListContainer {
// Forward most of the reading logic to ListContainer.
bool empty() const { return list_.empty(); }
size_t size() const { return list_.size(); }
+ size_t GetCapacityInBytes() const { return list_.GetCapacityInBytes(); }
ConstIterator begin() const { return list_.begin(); }
ConstIterator end() const { return list_.end(); }

Powered by Google App Engine
This is Rietveld 408576698