diff options
| author | 2014-11-17 23:07:29 +0000 | |
|---|---|---|
| committer | 2014-11-17 23:07:29 +0000 | |
| commit | f7d0b20e9ed5727a9b9b1a0c0cc4fc7383a7859f (patch) | |
| tree | 5facc29f983d7d5c075c585336544430c9986292 /libs/hwui/AmbientShadow.cpp | |
| parent | af71ab2c7ffed15fa7cd3f6dbd9306697075f6d1 (diff) | |
| parent | cb82b7f1824dc7f9fa73c2bada7107c48290af8b (diff) | |
am cb82b7f1: am a58336f6: Merge "Use fabsf() rather than abs()"
* commit 'cb82b7f1824dc7f9fa73c2bada7107c48290af8b':
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 9dcd3a8fbdf1..f9cbf93099f3 100644 --- a/libs/hwui/AmbientShadow.cpp +++ b/libs/hwui/AmbientShadow.cpp @@ -129,7 +129,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; } /** |