diff options
author | reed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-31 18:37:22 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-31 18:37:22 +0000 |
commit | 49ead3c7d316411e8d63a2f59acb6e05b0597cdd (patch) | |
tree | f72fb9428ea58945fc0f6629ace73996d690e82d /skia/config | |
parent | 0364ba29de5c4e9c598aa35cf1df4966e870975e (diff) | |
download | chromium_src-49ead3c7d316411e8d63a2f59acb6e05b0597cdd.zip chromium_src-49ead3c7d316411e8d63a2f59acb6e05b0597cdd.tar.gz chromium_src-49ead3c7d316411e8d63a2f59acb6e05b0597cdd.tar.bz2 |
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
Diffstat (limited to 'skia/config')
-rw-r--r-- | skia/config/SkUserConfig.h | 12 |
1 files changed, 3 insertions, 9 deletions
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 |