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

Unified Diff: cc/resources/scoped_ui_resource.h

Issue 2440393002: [tracing] Implement composable memory usage estimators. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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..a0fb5d6df29c825fab4e7250a539a7f316bb79a2 100644
--- a/cc/resources/scoped_ui_resource.h
+++ b/cc/resources/scoped_ui_resource.h
@@ -33,9 +33,7 @@ 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:
ScopedUIResource(UIResourceManager* ui_resource_manager,
« 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