summaryrefslogtreecommitdiffstats
path: root/libs/hwui/font
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-07-07 18:42:17 -0700
committerChris Craik <ccraik@google.com>2015-07-07 18:42:42 -0700
commite6a15ee3d0c78eb3f2551d73a7d238c3d8d2f075 (patch)
treefb4aa5c04487f1f2c13221937933288e2a3fff44 /libs/hwui/font
parent61d7acae0cafc265e94a35ad3ba1677f60346de9 (diff)
downloadframeworks_base-e6a15ee3d0c78eb3f2551d73a7d238c3d8d2f075.zip
frameworks_base-e6a15ee3d0c78eb3f2551d73a7d238c3d8d2f075.tar.gz
frameworks_base-e6a15ee3d0c78eb3f2551d73a7d238c3d8d2f075.tar.bz2
Remove all usage of fmin and fmax
bug:22208220 Removes needless call, and upconversion to doubles in multiple places. Change-Id: I1b949fa5f206446ac34de800154c0147d6bd8034
Diffstat (limited to 'libs/hwui/font')
-rw-r--r--libs/hwui/font/CacheTexture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/font/CacheTexture.cpp b/libs/hwui/font/CacheTexture.cpp
index 845cf30..d2685da 100644
--- a/libs/hwui/font/CacheTexture.cpp
+++ b/libs/hwui/font/CacheTexture.cpp
@@ -314,7 +314,7 @@ bool CacheTexture::fitBitmap(const SkGlyph& glyph, uint32_t* retOriginX, uint32_
#endif
}
- if (cacheBlock->mHeight < fmin(glyphH, glyphW)) {
+ if (cacheBlock->mHeight < std::min(glyphH, glyphW)) {
// If remaining space in this block is too small to be useful, remove it
mCacheBlocks = CacheBlock::removeBlock(mCacheBlocks, cacheBlock);
}