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

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

Issue 2406103002: [tracing] Add memory usage of Android UI resources to memory-infra (Closed)
Patch Set: Fixes. 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
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 ee6a6d1bba9b4715e8b43a159461dd0512ab776f..aac7ccc6028da4ad86356fb009247d7adde443c5 100644
--- a/ui/android/resources/crushed_sprite_resource.cc
+++ b/ui/android/resources/crushed_sprite_resource.cc
@@ -4,7 +4,6 @@
#include "ui/android/resources/crushed_sprite_resource.h"
-#include "cc/resources/scoped_ui_resource.h"
#include "cc/trees/layer_tree_host.h"
#include "ui/gfx/android/java_bitmap.h"
@@ -60,4 +59,8 @@ int CrushedSpriteResource::GetFrameCount() {
return src_dst_rects_.size();
}
+size_t CrushedSpriteResource::GetAllocatedSizeInBytes() const {
+ return bitmap_.getSize();
+}
+
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698