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

Unified Diff: cc/resources/memory_history.h

Issue 367833003: cc: Start using raster/eviction iterators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 2 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 | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/memory_history.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/memory_history.h
diff --git a/cc/resources/memory_history.h b/cc/resources/memory_history.h
index daca10f35a0a7a665e1de8ac41be05f88bfd5922..570a3d0ca4321f8ec13f2fe27d8ea063b153806f 100644
--- a/cc/resources/memory_history.h
+++ b/cc/resources/memory_history.h
@@ -22,17 +22,12 @@ class MemoryHistory {
struct Entry {
Entry()
: total_budget_in_bytes(0),
- bytes_allocated(0),
- bytes_unreleasable(0),
- bytes_over(0) {}
+ total_bytes_used(0),
+ had_enough_memory(false) {}
size_t total_budget_in_bytes;
- size_t bytes_allocated;
- size_t bytes_unreleasable;
- size_t bytes_over;
- size_t bytes_total() const {
- return bytes_allocated + bytes_unreleasable + bytes_over;
- }
+ size_t total_bytes_used;
+ bool had_enough_memory;
};
void SaveEntry(const Entry& entry);
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/memory_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698