diff options
author | Chris Craik <ccraik@google.com> | 2014-08-27 15:34:52 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-08-27 15:43:42 -0700 |
commit | c3e75f9d54b3629b3fd27afafa2e07bd07dad9b3 (patch) | |
tree | 80da7c0eda4235a9c4f3d3e71a4fb0c039b91652 /libs/hwui/DisplayListOp.h | |
parent | 780617faa2c9b3dbcb902da06a486149c5bddbb3 (diff) | |
download | frameworks_base-c3e75f9d54b3629b3fd27afafa2e07bd07dad9b3.zip frameworks_base-c3e75f9d54b3629b3fd27afafa2e07bd07dad9b3.tar.gz frameworks_base-c3e75f9d54b3629b3fd27afafa2e07bd07dad9b3.tar.bz2 |
Update transform isolation to handle command chunks
bug:15570351
Prevent drawing transformations on a ViewGroup's canvas from directly
affecting the transformation of the children through the renderer,
since it's already baked into mTransformFromParent at record time.
Change-Id: I6310a2260dfe4def0bde1fd2c5b93791a645d586
Diffstat (limited to 'libs/hwui/DisplayListOp.h')
-rw-r--r-- | libs/hwui/DisplayListOp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/DisplayListOp.h b/libs/hwui/DisplayListOp.h index 8818510..5ff7b7f 100644 --- a/libs/hwui/DisplayListOp.h +++ b/libs/hwui/DisplayListOp.h @@ -1528,8 +1528,7 @@ public: virtual status_t applyDraw(OpenGLRenderer& renderer, Rect& dirty) { TessellationCache::vertexBuffer_pair_t buffers; - Matrix4 drawTransform; - renderer.getMatrix(&drawTransform); + Matrix4 drawTransform(*(renderer.currentTransform())); renderer.getCaches().tessellationCache.getShadowBuffers(&drawTransform, renderer.getLocalClipBounds(), isCasterOpaque(), mCasterOutline, &mTransformXY, &mTransformZ, renderer.getLightCenter(), renderer.getLightRadius(), |