diff options
author | Chris Craik <ccraik@google.com> | 2014-05-05 19:09:33 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-05-15 16:36:12 -0700 |
commit | deeda3d337aed1eee218b89a7aba5992ced371f0 (patch) | |
tree | 15e13e84727baebce58b735e34ef5d198fd84389 /libs/hwui/utils | |
parent | fe4c1e225d147fe9cb5d7c121b7d6d11a312844e (diff) | |
download | frameworks_base-deeda3d337aed1eee218b89a7aba5992ced371f0.zip frameworks_base-deeda3d337aed1eee218b89a7aba5992ced371f0.tar.gz frameworks_base-deeda3d337aed1eee218b89a7aba5992ced371f0.tar.bz2 |
Round rect outline clipping
Change-Id: Iee9cf4f719f6f1917507b69189ad114fa365917b
Diffstat (limited to 'libs/hwui/utils')
-rw-r--r-- | libs/hwui/utils/MathUtils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/utils/MathUtils.h b/libs/hwui/utils/MathUtils.h index 1a7082b..997acde2 100644 --- a/libs/hwui/utils/MathUtils.h +++ b/libs/hwui/utils/MathUtils.h @@ -34,6 +34,10 @@ public: return value >= gNonZeroEpsilon; } + inline static bool areEqual(float valueA, float valueB) { + return isZero(valueA - valueB); + } + inline static int min(int a, int b) { return a < b ? a : b; } |