diff options
| author | 2014-11-17 22:59:11 +0000 | |
|---|---|---|
| committer | 2014-11-17 22:59:11 +0000 | |
| commit | cb82b7f1824dc7f9fa73c2bada7107c48290af8b (patch) | |
| tree | 6bb3e3cd78bded34e48287ae20d13dc27e70491d /libs/hwui/AmbientShadow.cpp | |
| parent | 804e2937e16943609c46ca3fe0cdbefab29f4210 (diff) | |
| parent | a58336f6c8aa44373485e5a6d7ec32677387a935 (diff) | |
am a58336f6: Merge "Use fabsf() rather than abs()"
* commit 'a58336f6c8aa44373485e5a6d7ec32677387a935':
Use fabsf() rather than abs()
Diffstat (limited to 'libs/hwui/AmbientShadow.cpp')
| -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 09e090dd8226..13de0a644f66 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; } /** |