summaryrefslogtreecommitdiff
path: root/libs/hwui/RecordingCanvas.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2019-10-09 13:41:18 -0700
committerJohn Reck <jreck@google.com>2019-10-09 13:42:43 -0700
commit183e1380cef0f63610497abed01e16036a2ea2d4 (patch)
tree6be42299bdadf7fae5aaf58f787070123c6371aa /libs/hwui/RecordingCanvas.h
parent3441faa0453907f8713ebccfa33049c2e99e4fe6 (diff)
Improve dumping of display list memory usage
The first step of improving is measuring. So measure better. Bug: 138856108 Test: dump Change-Id: I076b904a1f0dfb209622c76bcb8778a10cd2b7db
Diffstat (limited to 'libs/hwui/RecordingCanvas.h')
-rw-r--r--libs/hwui/RecordingCanvas.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/RecordingCanvas.h b/libs/hwui/RecordingCanvas.h
index a79b7c00ba04..322eff24dd34 100644
--- a/libs/hwui/RecordingCanvas.h
+++ b/libs/hwui/RecordingCanvas.h
@@ -69,6 +69,7 @@ public:
bool hasText() const { return mHasText; }
size_t usedSize() const { return fUsed; }
+ size_t allocatedSize() const { return fReserved; }
private:
friend class RecordingCanvas;