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

Unified Diff: cc/resources/ui_resource_bitmap.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 | « cc/resources/scoped_ui_resource.h ('k') | ui/android/resources/crushed_sprite_resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/ui_resource_bitmap.h
diff --git a/cc/resources/ui_resource_bitmap.h b/cc/resources/ui_resource_bitmap.h
index 6f2c780fcb9081dfef259ec974b7cfaed6ea33cc..0c7931b0a877fdaf80b53ecdde2b9b1545ed8601 100644
--- a/cc/resources/ui_resource_bitmap.h
+++ b/cc/resources/ui_resource_bitmap.h
@@ -52,7 +52,7 @@ class CC_EXPORT UIResourceBitmap {
~UIResourceBitmap();
// Returns the memory usage of the bitmap.
- size_t GetAllocatedSizeInBytes() const {
+ size_t EstimateMemoryUsage() const {
return pixel_ref_ ? pixel_ref_->rowBytes() * size_.height() : 0;
}
« no previous file with comments | « cc/resources/scoped_ui_resource.h ('k') | ui/android/resources/crushed_sprite_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698