aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-06-09 15:06:22 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-09 15:06:22 -0700
commit519580553ab85ef04c6a08d8e09ef0eb93c7bc1f (patch)
tree68d0efd3bb825203c3694a448437103dc233bb0e /include
parentb23e6aa6767816ac4bc6c191e78ef62d6e765671 (diff)
Use SkMScalar as float by default to match Chromium.
Tweak some test values to pass with floats. As expected, this regresses matrix44_setconcat_general by about 2x. BUG=skia: Review URL: https://codereview.chromium.org/1169813006
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPostConfig.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h
index 37e6c591d9..1508b1a2ff 100644
--- a/include/core/SkPostConfig.h
+++ b/include/core/SkPostConfig.h
@@ -24,13 +24,12 @@
/**
* Matrix calculations may be float or double.
- * The default is double, as that is faster given our impl uses doubles
- * for intermediate calculations.
+ * The default is float, as that's what Chromium's using.
*/
#if defined(SK_MSCALAR_IS_DOUBLE) && defined(SK_MSCALAR_IS_FLOAT)
# error "cannot define both SK_MSCALAR_IS_DOUBLE and SK_MSCALAR_IS_FLOAT"
#elif !defined(SK_MSCALAR_IS_DOUBLE) && !defined(SK_MSCALAR_IS_FLOAT)
-# define SK_MSCALAR_IS_DOUBLE
+# define SK_MSCALAR_IS_FLOAT
#endif
#if defined(SK_CPU_LENDIAN) && defined(SK_CPU_BENDIAN)