commit | a58336f6c8aa44373485e5a6d7ec32677387a935 | [log] [tgz] |
---|---|---|
author | Chih-hung Hsieh <chh@google.com> | Mon Nov 17 22:41:10 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Nov 17 22:41:11 2014 +0000 |
tree | f1ea12e45755e09c2b6ecffe9bb025af876cf57c | |
parent | 1615731d18b042d4c69dad3169166cce7a2a9fcf [diff] | |
parent | c44958c78632162d2473ce3e86bef97f020ff4d0 [diff] |
Merge "Use fabsf() rather than abs()"
diff --git a/libs/hwui/AmbientShadow.cpp b/libs/hwui/AmbientShadow.cpp index 2d1cf78..f11437b0 100644 --- a/libs/hwui/AmbientShadow.cpp +++ b/libs/hwui/AmbientShadow.cpp
@@ -128,7 +128,7 @@ } inline bool needsExtraForEdge(float firstAlpha, float secondAlpha) { - return abs(firstAlpha - secondAlpha) > ALPHA_THRESHOLD; + return fabsf(firstAlpha - secondAlpha) > ALPHA_THRESHOLD; } /**