diff options
| author | 2010-12-06 18:08:46 -0800 | |
|---|---|---|
| committer | 2010-12-06 18:08:46 -0800 | |
| commit | ffac19ede6723ae00ed24ecc658d69c5effbe4bc (patch) | |
| tree | 65a2a4430f73b44e6f313b770ac84aa4074571a4 /libs/hwui/Matrix.cpp | |
| parent | 97fdd7dcfd617482e1dba7748a73f189b0af8330 (diff) | |
| parent | 6620c6d413f972819fada92b574f0fa9e96d36c1 (diff) | |
Merge "Correctly render text when coordinates are not integers. Bug #3225632"
Diffstat (limited to 'libs/hwui/Matrix.cpp')
| -rw-r--r-- | libs/hwui/Matrix.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/Matrix.cpp b/libs/hwui/Matrix.cpp index 7462d5bae208..fe7f8834a8b2 100644 --- a/libs/hwui/Matrix.cpp +++ b/libs/hwui/Matrix.cpp @@ -62,6 +62,11 @@ bool Matrix4::changesBounds() { ALMOST_EQUAL(data[10], 1.0f)); } +bool Matrix4::isPureTranslate() { + return mSimpleMatrix && + ALMOST_EQUAL(data[kScaleX], 1.0f) && ALMOST_EQUAL(data[kScaleY], 1.0f); +} + void Matrix4::load(const float* v) { memcpy(data, v, sizeof(data)); mSimpleMatrix = false; |