Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: skia/config/SkUserConfig.h

Issue 3014039: 2010/07/27 W. James MacLean (wjmaclean@chromium.org) (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/config/SkUserConfig.h
diff --git a/skia/config/SkUserConfig.h b/skia/config/SkUserConfig.h
index a51b2faf92955bd24bcc72c098269a52caeec636..cb8edf7044bd9f3f375138b1b56af6a7063a00c9 100644
--- a/skia/config/SkUserConfig.h
+++ b/skia/config/SkUserConfig.h
@@ -59,6 +59,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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698