summaryrefslogtreecommitdiffstats
path: root/skia/config
diff options
context:
space:
mode:
authorsenorblanco@google.com <senorblanco@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 17:03:32 +0000
committersenorblanco@google.com <senorblanco@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 17:03:32 +0000
commitda4c2908657cdc97bec4d1267e4bc1f6c9070de3 (patch)
treee6531f275c2b60378e8d52e631c0ff09749a2e72 /skia/config
parent144ebaf3f81bf5daea8f13e5c3c5d8217fdd340f (diff)
downloadchromium_src-da4c2908657cdc97bec4d1267e4bc1f6c9070de3.zip
chromium_src-da4c2908657cdc97bec4d1267e4bc1f6c9070de3.tar.gz
chromium_src-da4c2908657cdc97bec4d1267e4bc1f6c9070de3.tar.bz2
Turn on SK_USE_FLOATBITS for Skia to force safe float-to-int conversions. This is a temporary change until Skia supports saturating float->int conversions. [Landed on behalf of wjmaclean]
TEST= existing layout tests BUG= WebKit 25645 (https://bugs.webkit.org/show_bug.cgi?id=25645) Review URL: http://codereview.chromium.org/3014039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53795 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/config')
-rw-r--r--skia/config/SkUserConfig.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/skia/config/SkUserConfig.h b/skia/config/SkUserConfig.h
index 879c021..9e5c364b 100644
--- a/skia/config/SkUserConfig.h
+++ b/skia/config/SkUserConfig.h
@@ -60,6 +60,13 @@
*/
//#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,