summaryrefslogtreecommitdiff
path: root/libs/hwui/Matrix.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2018-11-26 16:41:34 -0800
committerJohn Reck <jreck@google.com>2018-11-26 16:41:34 -0800
commit0aff62d12f5b214e09628dc5d933ffdac7950f11 (patch)
treebb9519e5e9ee122c010bdf87c9b6648568263984 /libs/hwui/Matrix.h
parent9a72ec33d78a43c8771bfa03061c0fc9d6e4225d (diff)
Fix failing TextureViewTest
A tiny scaleX/scaleY is sneaking into the matrix, throwing off the nearest/bilerp calculation. This tiny scaleX/scaleY appears to be coming from the inverse texture matrix necessary to workaround skia issue https://bugs.chromium.org/p/skia/issues/detail?id=7075 So add another workaround for SkMatrix::getType() reporting this as having a scale, even though there really isn't one. Bug: 119783323 Test: atest android.view.cts.TextureViewTest#testSamplingWithTransform Change-Id: I3e675102ef99ce093f698460242c19dfe7e90345
Diffstat (limited to 'libs/hwui/Matrix.h')
-rw-r--r--libs/hwui/Matrix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/Matrix.h b/libs/hwui/Matrix.h
index f0a3a959617d..1b5cb60ca4bd 100644
--- a/libs/hwui/Matrix.h
+++ b/libs/hwui/Matrix.h
@@ -27,6 +27,7 @@ namespace android {
namespace uirenderer {
#define SK_MATRIX_STRING "[%.2f %.2f %.2f] [%.2f %.2f %.2f] [%.2f %.2f %.2f]"
+#define SK_MATRIX_STRING_V "[%.9f %.9f %.9f] [%.9f %.9f %.9f] [%.9f %.9f %.9f]"
#define SK_MATRIX_ARGS(m) \
(m)->get(0), (m)->get(1), (m)->get(2), (m)->get(3), (m)->get(4), (m)->get(5), (m)->get(6), \
(m)->get(7), (m)->get(8)