diff options
| author | 2014-04-09 18:10:28 +0000 | |
|---|---|---|
| committer | 2014-04-09 18:10:28 +0000 | |
| commit | 972d0488a555ff65a9e18655795e65e4b5365175 (patch) | |
| tree | 0c2b018f0789cef961a3021cb4598f7249134817 | |
| parent | a040977de8b3ec791bf3b7e0115630e8c27fd8ca (diff) | |
| parent | defb7f37fe67ef2389666f7adc5da1260df87017 (diff) | |
Merge "When recording a child node into a parent, read staging projection property"
| -rw-r--r-- | libs/hwui/DisplayListRenderer.cpp | 4 | ||||
| -rw-r--r-- | libs/hwui/RenderNode.h | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/libs/hwui/DisplayListRenderer.cpp b/libs/hwui/DisplayListRenderer.cpp index a84aa6b690e1..140a07afc7c5 100644 --- a/libs/hwui/DisplayListRenderer.cpp +++ b/libs/hwui/DisplayListRenderer.cpp @@ -192,7 +192,9 @@ status_t DisplayListRenderer::drawDisplayList(RenderNode* displayList, flags, *currentTransform()); addDrawOp(op); mDisplayListData->addChild(op); - if (displayList->isProjectionReceiver()) { + + if (displayList->stagingProperties().isProjectionReceiver()) { + // use staging property, since recording on UI thread mDisplayListData->projectionReceiveIndex = mDisplayListData->displayListOps.size() - 1; } diff --git a/libs/hwui/RenderNode.h b/libs/hwui/RenderNode.h index fd0fabcffbbb..fa0fb8afa037 100644 --- a/libs/hwui/RenderNode.h +++ b/libs/hwui/RenderNode.h @@ -105,6 +105,10 @@ public: return mDisplayListData && mDisplayListData->hasDrawOps; } + const char* getName() const { + return mName.string(); + } + void setName(const char* name) { if (name) { char* lastPeriod = strrchr(name, '.'); @@ -129,10 +133,6 @@ public: return mStagingProperties; } - bool isProjectionReceiver() { - return properties().isProjectionReceiver(); - } - int getWidth() { return properties().getWidth(); } |