OSDN Git Service

Fix a translate issue with saveLayer
authorJohn Reck <jreck@google.com>
Tue, 24 May 2016 22:06:01 +0000 (15:06 -0700)
committerJohn Reck <jreck@google.com>
Tue, 24 May 2016 22:06:01 +0000 (15:06 -0700)
commitc9bb1a38d356087a4e5578307a6839eac0a1e6ee
treea50435aac169d3bc8897d9c3a1f50a05e3039868
parent2a4001ee62f3374d7fffed72d71f77c5a833c331
Fix a translate issue with saveLayer

Bug: 28667141

saveLayer clips the layer to the size it needs to
be and will translate content if necessary, but
the drawLayerOp that results from that was not
translated to handle the shifted draw content.

This fixes that

Change-Id: I3c9ffd5d0282fa1b958bced94c25e9744281e9be
libs/hwui/FrameBuilder.cpp
libs/hwui/OpDumper.cpp
libs/hwui/OpDumper.h
libs/hwui/tests/unit/FrameBuilderTests.cpp