summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,