diff options
| author | 2014-11-17 22:41:10 +0000 | |
|---|---|---|
| committer | 2014-11-17 22:41:11 +0000 | |
| commit | a58336f6c8aa44373485e5a6d7ec32677387a935 (patch) | |
| tree | f1ea12e45755e09c2b6ecffe9bb025af876cf57c | |
| parent | 1615731d18b042d4c69dad3169166cce7a2a9fcf (diff) | |
| parent | c44958c78632162d2473ce3e86bef97f020ff4d0 (diff) | |
Merge "Use fabsf() rather than abs()"
| -rw-r--r-- | libs/hwui/AmbientShadow.cpp | 2 |
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; } /** |