summaryrefslogtreecommitdiffstats
path: root/libs/hwui/DisplayListRenderer.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2014-04-08 18:17:07 -0700
committerChris Craik <ccraik@google.com>2014-04-08 18:17:07 -0700
commitdefb7f37fe67ef2389666f7adc5da1260df87017 (patch)
tree53011a92b1a2a475d5d2e815343ac328dcbbeb32 /libs/hwui/DisplayListRenderer.cpp
parentff17bc9cac2f9b178fcbfe3a0af307b4d16c2389 (diff)
downloadframeworks_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.cpp4
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;
}