commit | deeda3d337aed1eee218b89a7aba5992ced371f0 | [log] [tgz] |
---|---|---|
author | Chris Craik <ccraik@google.com> | Mon May 05 19:09:33 2014 -0700 |
committer | Chris Craik <ccraik@google.com> | Thu May 15 16:36:12 2014 -0700 |
tree | 15e13e84727baebce58b735e34ef5d198fd84389 | |
parent | fe4c1e225d147fe9cb5d7c121b7d6d11a312844e [diff] [blame] |
Round rect outline clipping Change-Id: Iee9cf4f719f6f1917507b69189ad114fa365917b
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 @@ 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; }