summaryrefslogtreecommitdiff
path: root/libs/hwui/RenderNode.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2014-03-26 15:10:40 -0700
committer John Reck <jreck@google.com> 2014-03-27 10:00:04 -0700
commit668f0e38ef0277d55d3118af37e17b8c435df85c (patch)
treed0703be6cce376c8a982d7c491445d2e94009375 /libs/hwui/RenderNode.cpp
parentbcad68ad80e5a44e5dc6988eddb8acabdc01a737 (diff)
Async drawing!
Change-Id: I7e728356f58af88174328a8c0b90d27b128bfe01
Diffstat (limited to 'libs/hwui/RenderNode.cpp')
-rw-r--r--libs/hwui/RenderNode.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/hwui/RenderNode.cpp b/libs/hwui/RenderNode.cpp
index d3daec8e7dd3..f0cf42f2f634 100644
--- a/libs/hwui/RenderNode.cpp
+++ b/libs/hwui/RenderNode.cpp
@@ -107,6 +107,23 @@ void RenderNode::updateProperties() {
}
}
+bool RenderNode::hasFunctors() {
+ if (!mDisplayListData) return false;
+
+ if (mDisplayListData->functorCount) {
+ return true;
+ }
+
+ for (size_t i = 0; i < mDisplayListData->children.size(); i++) {
+ RenderNode* childNode = mDisplayListData->children[i]->mDisplayList;
+ if (childNode->hasFunctors()) {
+ return true;
+ }
+ }
+
+ return false;
+}
+
/*
* For property operations, we pass a savecount of 0, since the operations aren't part of the
* displaylist, and thus don't have to compensate for the record-time/playback-time discrepancy in