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

Unified Diff: cc/resources/scoped_ui_resource.h

Issue 2440393002: [tracing] Implement composable memory usage estimators. (Closed)
Patch Set: Created 4 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 | « base/trace_event/estimate_memory_usage_unittest.cc ('k') | cc/resources/ui_resource_bitmap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/scoped_ui_resource.h
diff --git a/cc/resources/scoped_ui_resource.h b/cc/resources/scoped_ui_resource.h
index 7f3ea4b385c432c8ed90414abe08e2bec17ae0e7..24dfaaf4e424861e96bde3bce481b1eb35acad41 100644
--- a/cc/resources/scoped_ui_resource.h
+++ b/cc/resources/scoped_ui_resource.h
@@ -33,8 +33,8 @@ class CC_EXPORT ScopedUIResource : public UIResourceClient {
UIResourceId id() { return id_; }
// Returns the memory usage of the bitmap.
- size_t GetAllocatedSizeInBytes() const {
- return bitmap_.GetAllocatedSizeInBytes();
+ size_t EstimateMemoryUsage() const {
+ return bitmap_.EstimateMemoryUsage();
}
protected:
« no previous file with comments | « base/trace_event/estimate_memory_usage_unittest.cc ('k') | cc/resources/ui_resource_bitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698