summaryrefslogtreecommitdiffstats
path: root/libs/hwui/AmbientShadow.cpp
diff options
context:
space:
mode:
authorChih-hung Hsieh <chh@google.com>2014-11-17 23:07:29 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-17 23:07:29 +0000
commitf7d0b20e9ed5727a9b9b1a0c0cc4fc7383a7859f (patch)
tree5facc29f983d7d5c075c585336544430c9986292 /libs/hwui/AmbientShadow.cpp
parentaf71ab2c7ffed15fa7cd3f6dbd9306697075f6d1 (diff)
parentcb82b7f1824dc7f9fa73c2bada7107c48290af8b (diff)
downloadframeworks_base-f7d0b20e9ed5727a9b9b1a0c0cc4fc7383a7859f.zip
frameworks_base-f7d0b20e9ed5727a9b9b1a0c0cc4fc7383a7859f.tar.gz
frameworks_base-f7d0b20e9ed5727a9b9b1a0c0cc4fc7383a7859f.tar.bz2
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/AmbientShadow.cpp b/libs/hwui/AmbientShadow.cpp
index 9dcd3a8..f9cbf93 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;
}
/**