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

Unified Diff: ui/android/resources/crushed_sprite_resource.cc

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 | « ui/android/resources/crushed_sprite_resource.h ('k') | ui/android/resources/resource_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/resources/crushed_sprite_resource.cc
diff --git a/ui/android/resources/crushed_sprite_resource.cc b/ui/android/resources/crushed_sprite_resource.cc
index aac7ccc6028da4ad86356fb009247d7adde443c5..f28854968d2350cfd69b9c85bd73d713637c28f0 100644
--- a/ui/android/resources/crushed_sprite_resource.cc
+++ b/ui/android/resources/crushed_sprite_resource.cc
@@ -59,7 +59,7 @@ int CrushedSpriteResource::GetFrameCount() {
return src_dst_rects_.size();
}
-size_t CrushedSpriteResource::GetAllocatedSizeInBytes() const {
+size_t CrushedSpriteResource::EstimateMemoryUsage() const {
return bitmap_.getSize();
}
« no previous file with comments | « ui/android/resources/crushed_sprite_resource.h ('k') | ui/android/resources/resource_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698