diff options
author | Chris Craik <ccraik@google.com> | 2015-12-16 14:27:20 -0800 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2015-12-16 15:35:40 -0800 |
commit | d2dfd8f128b632ed99418ab2b32949c939a9a369 (patch) | |
tree | ef9446320399a05cf5bf2e1d7d4a6a177c261960 /libs/hwui/Matrix.h | |
parent | d7448e65e243754f31890baef29dff187dc2e5e5 (diff) |
Add TextureView support to new renderer/reorderer
bug:22480459
Change-Id: I2e4c0bc6b904706132f3f5087ededc9cac9b40fb
Diffstat (limited to 'libs/hwui/Matrix.h')
-rw-r--r-- | libs/hwui/Matrix.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/hwui/Matrix.h b/libs/hwui/Matrix.h index c017638db895..1c25f26c0c25 100644 --- a/libs/hwui/Matrix.h +++ b/libs/hwui/Matrix.h @@ -139,9 +139,11 @@ public: } void multiply(const Matrix4& v) { - Matrix4 u; - u.loadMultiply(*this, v); - *this = u; + if (!v.isIdentity()) { + Matrix4 u; + u.loadMultiply(*this, v); + *this = u; + } } void multiply(float v); |