diff options
author | John Reck <jreck@google.com> | 2018-11-29 09:44:10 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2018-11-29 10:34:32 -0800 |
commit | f96b284dec00580c6a586cf6787b98eeb2cd73f5 (patch) | |
tree | 60718dd4bbb9d2529af4db23be5dbac415b67a8b /libs/hwui/RenderNode.h | |
parent | 9a72ec33d78a43c8771bfa03061c0fc9d6e4225d (diff) |
Add a unique ID to rendernode
Bug: 120089776
Test: dump'd skp, verified ID present
Change-Id: I97a03804ebc53925e1b79db3dd616a728eff0bfa
Diffstat (limited to 'libs/hwui/RenderNode.h')
-rw-r--r-- | libs/hwui/RenderNode.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/RenderNode.h b/libs/hwui/RenderNode.h index be0b46b1c45f..6060123ed759 100644 --- a/libs/hwui/RenderNode.h +++ b/libs/hwui/RenderNode.h @@ -213,6 +213,11 @@ public: UsageHint usageHint() const { return mUsageHint; } + int64_t uniqueId() const { return mUniqueId; } + + void markDrawStart(SkCanvas& canvas); + void markDrawEnd(SkCanvas& canvas); + private: void computeOrderingImpl(RenderNodeOp* opState, std::vector<RenderNodeOp*>* compositedChildrenOfProjectionSurface, @@ -233,6 +238,7 @@ private: void incParentRefCount() { mParentCount++; } void decParentRefCount(TreeObserver& observer, TreeInfo* info = nullptr); + const int64_t mUniqueId; String8 mName; sp<VirtualLightRefBase> mUserContext; |