diff options
author | 2014-05-29 22:23:40 +0000 | |
---|---|---|
committer | 2014-05-29 22:23:41 +0000 | |
commit | aee470c0232afdac4256d13020fa0cf04f30395c (patch) | |
tree | 5fc37aedf16ce9aa5b6283d0c9b5665954f191f3 /libs/hwui/RenderNode.cpp | |
parent | e2960b6fd2d31f8a729ce9d180bffc947c0d6464 (diff) | |
parent | fe5e7b7346a54537b980796ceeca66bfdbd05561 (diff) |
Merge "Enable debug stuffs" into lmp-preview-dev
Diffstat (limited to 'libs/hwui/RenderNode.cpp')
-rw-r--r-- | libs/hwui/RenderNode.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/hwui/RenderNode.cpp b/libs/hwui/RenderNode.cpp index df74f31cf517..d964efc1c3e4 100644 --- a/libs/hwui/RenderNode.cpp +++ b/libs/hwui/RenderNode.cpp @@ -93,6 +93,17 @@ void RenderNode::output(uint32_t level) { ALOGD("%*sDone (%p, %s)", (level - 1) * 2, "", this, getName()); } +int RenderNode::getDebugSize() { + int size = sizeof(RenderNode); + if (mStagingDisplayListData) { + size += mStagingDisplayListData->allocator.usedSize(); + } + if (mDisplayListData && mDisplayListData != mStagingDisplayListData) { + size += mDisplayListData->allocator.usedSize(); + } + return size; +} + void RenderNode::prepareTree(TreeInfo& info) { ATRACE_CALL(); |