diff options
| author | 2021-02-09 16:16:47 +0000 | |
|---|---|---|
| committer | 2021-02-09 16:16:47 +0000 | |
| commit | 9ab8e869bcd934b3cab14837b620dac4850b075a (patch) | |
| tree | eed10b5302cb4d446d2a48fe422694c2d83cb297 /libs/hwui/Layer.cpp | |
| parent | 224e5f0b31b7da229c1bd13f19b5da4f98d30484 (diff) | |
| parent | 9a7c192ebedc8dd8aaaf217f8bba39a8717c1ac2 (diff) | |
Merge "Remove two macros" into sc-dev
Diffstat (limited to 'libs/hwui/Layer.cpp')
| -rw-r--r-- | libs/hwui/Layer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/Layer.cpp b/libs/hwui/Layer.cpp index ca2ada9e8141..b14ade97ca5f 100644 --- a/libs/hwui/Layer.cpp +++ b/libs/hwui/Layer.cpp @@ -54,7 +54,7 @@ SkBlendMode Layer::getMode() const { } static inline SkScalar isIntegerAligned(SkScalar x) { - return fabsf(roundf(x) - x) <= NON_ZERO_EPSILON; + return MathUtils::isZero(roundf(x) - x); } // Disable filtering when there is no scaling in screen coordinates and the corners have the same |