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

Unified Diff: cc/resources/memory_history.h

Issue 1168903003: cc: Fix size_t to int truncations in tiles/ and trees/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/layer.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 570a3d0ca4321f8ec13f2fe27d8ea063b153806f..15ddc75aa24c8d1a7f00f2a1f8784a150e6ac69a 100644
--- a/cc/resources/memory_history.h
+++ b/cc/resources/memory_history.h
@@ -26,12 +26,11 @@ class MemoryHistory {
had_enough_memory(false) {}
size_t total_budget_in_bytes;
- size_t total_bytes_used;
+ int64 total_bytes_used;
bool had_enough_memory;
};
void SaveEntry(const Entry& entry);
- void GetMinAndMax(size_t* min, size_t* max) const;
typedef RingBuffer<Entry, 80> RingBufferType;
RingBufferType::Iterator Begin() const { return ring_buffer_.Begin(); }
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/resources/memory_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698