From e6a15ee3d0c78eb3f2551d73a7d238c3d8d2f075 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Tue, 7 Jul 2015 18:42:17 -0700 Subject: Remove all usage of fmin and fmax bug:22208220 Removes needless call, and upconversion to doubles in multiple places. Change-Id: I1b949fa5f206446ac34de800154c0147d6bd8034 --- libs/hwui/TessellationCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/hwui/TessellationCache.cpp') diff --git a/libs/hwui/TessellationCache.cpp b/libs/hwui/TessellationCache.cpp index 9df1f0d1a719..17cb3a7fd6fd 100644 --- a/libs/hwui/TessellationCache.cpp +++ b/libs/hwui/TessellationCache.cpp @@ -244,8 +244,8 @@ static void tessellateShadows( const Vertex& point2d = casterVertices2d[i]; casterPolygon[i] = (Vector3){point2d.x, point2d.y, 0}; mapPointFakeZ(casterPolygon[i], casterTransformXY, casterTransformZ); - minZ = fmin(minZ, casterPolygon[i].z); - maxZ = fmax(maxZ, casterPolygon[i].z); + minZ = std::min(minZ, casterPolygon[i].z); + maxZ = std::max(maxZ, casterPolygon[i].z); } // map the centroid of the caster into 3d -- cgit v1.2.3-59-g8ed1b