summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chih-hung Hsieh <chh@google.com> 2014-11-17 22:41:10 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-11-17 22:41:11 +0000
commita58336f6c8aa44373485e5a6d7ec32677387a935 (patch)
treef1ea12e45755e09c2b6ecffe9bb025af876cf57c
parent1615731d18b042d4c69dad3169166cce7a2a9fcf (diff)
parentc44958c78632162d2473ce3e86bef97f020ff4d0 (diff)
Merge "Use fabsf() rather than abs()"
-rw-r--r--libs/hwui/AmbientShadow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/AmbientShadow.cpp b/libs/hwui/AmbientShadow.cpp
index 2d1cf78dcc77..f11437b06012 100644
--- a/libs/hwui/AmbientShadow.cpp
+++ b/libs/hwui/AmbientShadow.cpp
@@ -128,7 +128,7 @@ inline void computeBufferSize(int* totalVertexCount, int* totalIndexCount,
}
inline bool needsExtraForEdge(float firstAlpha, float secondAlpha) {
- return abs(firstAlpha - secondAlpha) > ALPHA_THRESHOLD;
+ return fabsf(firstAlpha - secondAlpha) > ALPHA_THRESHOLD;
}
/**