diff options
author | Chris Craik <ccraik@google.com> | 2014-04-08 18:17:07 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-04-08 18:17:07 -0700 |
commit | defb7f37fe67ef2389666f7adc5da1260df87017 (patch) | |
tree | 53011a92b1a2a475d5d2e815343ac328dcbbeb32 /libs/hwui/DisplayListRenderer.cpp | |
parent | ff17bc9cac2f9b178fcbfe3a0af307b4d16c2389 (diff) | |
download | frameworks_base-defb7f37fe67ef2389666f7adc5da1260df87017.zip frameworks_base-defb7f37fe67ef2389666f7adc5da1260df87017.tar.gz frameworks_base-defb7f37fe67ef2389666f7adc5da1260df87017.tar.bz2 |
When recording a child node into a parent, read staging projection property
bug:13770920
The other properties should not be read from the UI thread.
Change-Id: I61d13774553d46a8963623727d8e8eeeb3385cc9
Diffstat (limited to 'libs/hwui/DisplayListRenderer.cpp')
-rw-r--r-- | libs/hwui/DisplayListRenderer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/hwui/DisplayListRenderer.cpp b/libs/hwui/DisplayListRenderer.cpp index a84aa6b..140a07a 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; } |