From 49ead3c7d316411e8d63a2f59acb6e05b0597cdd Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Thu, 31 May 2012 18:37:22 +0000 Subject: Use std floorf() instead of custom version to go faster. Previously the custom version was chosen to work around bugs with very large floats, but those have been addressed. Review URL: https://chromiumcodereview.appspot.com/10458059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139829 0039d316-1c4b-4281-b951-d872f2087c98 --- skia/config/SkUserConfig.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'skia/config') diff --git a/skia/config/SkUserConfig.h b/skia/config/SkUserConfig.h index f8c237f..8f9ac56 100644 --- a/skia/config/SkUserConfig.h +++ b/skia/config/SkUserConfig.h @@ -60,13 +60,6 @@ */ //#define SK_CAN_USE_FLOAT -/* Temporarily turn on SK_USE_FLOATBITS so critical float->int conversions in Skia - are done with saturation. - TODO(wjmaclean@chromium.org): Remove this once saturating float->int implemented - throughout Skia. - */ -#define SK_USE_FLOATBITS - /* For some performance-critical scalar operations, skia will optionally work around the standard float operators if it knows that the CPU does not have native support for floats. If your environment uses software floating point, @@ -227,8 +220,9 @@ typedef unsigned uint32_t; #elif defined(SK_BUILD_FOR_UNIX) -// Prefer FreeType's emboldening algorithm to Skia's (which does a hairline -// outline and doesn't look very good). +// Prefer FreeType's emboldening algorithm to Skia's +// TODO: skia used to just use hairline, but has improved since then, so +// we should revisit this choice... #define SK_USE_FREETYPE_EMBOLDEN #ifdef SK_CPU_BENDIAN -- cgit v1.1