summaryrefslogtreecommitdiff
path: root/libs/hwui/Layer.cpp
diff options
context:
space:
mode:
author ramindani <ramindani@google.com> 2021-08-12 15:55:12 +0000
committer ramindani <ramindani@google.com> 2021-08-17 16:16:09 +0000
commit3952ed68a52099d8779453a2ab4218f600808d98 (patch)
tree32531bb91b6800a0be60e2ee48d7e2d2498e7ff4 /libs/hwui/Layer.cpp
parent9fa8e7a7b4bc1e5b18d09bd5527839a6f3145d2d (diff)
Added crop rect and removed inverse of the texture matrix.
BUG=152621633 Test: Verified manually and with atest TextureViewCameraTest atest TextureViewTest atest TextureViewSnapshotTest atest TextureViewStressTest atest PixelCopyTest atest BitmapTest atest HardwareBitmapTests Change-Id: Ie993a18fd3511576617a1eb859bf228c33d12f78
Diffstat (limited to 'libs/hwui/Layer.cpp')
-rw-r--r--libs/hwui/Layer.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/libs/hwui/Layer.cpp b/libs/hwui/Layer.cpp
index 47c47e0427a4..9053c1240957 100644
--- a/libs/hwui/Layer.cpp
+++ b/libs/hwui/Layer.cpp
@@ -35,7 +35,6 @@ Layer::Layer(RenderState& renderState, sk_sp<SkColorFilter> colorFilter, int alp
// preserves the old inc/dec ref locations. This should be changed...
incStrong(nullptr);
renderState.registerLayer(this);
- texTransform.setIdentity();
transform.setIdentity();
}
@@ -101,7 +100,6 @@ void Layer::draw(SkCanvas* canvas) {
const int layerHeight = getHeight();
if (layerImage) {
SkMatrix textureMatrixInv;
- textureMatrixInv = getTexTransform();
// TODO: after skia bug https://bugs.chromium.org/p/skia/issues/detail?id=7075 is fixed
// use bottom left origin and remove flipV and invert transformations.
SkMatrix flipV;