Index: include/core/SkScalar.h |
diff --git a/include/core/SkScalar.h b/include/core/SkScalar.h |
index 2dd7a6283f1122f2627176db46c227ee0b138767..cc1cf99ac80ad16c2832c7e2406b899e1215a51d 100644 |
--- a/include/core/SkScalar.h |
+++ b/include/core/SkScalar.h |
@@ -78,7 +78,9 @@ |
#define SkScalarToFixed(x) SkFloatToFixed(x) |
#define SkScalarToFloat(n) (n) |
+#ifndef SK_SCALAR_TO_FLOAT_EXCLUDED |
#define SkFloatToScalar(n) (n) |
+#endif |
#define SkScalarToDouble(n) (double)(n) |
#define SkDoubleToScalar(n) (float)(n) |
@@ -198,7 +200,9 @@ |
#define SkFixedToScalar(x) (x) |
#define SkScalarToFixed(x) (x) |
#define SkScalarToFloat(n) SkFixedToFloat(n) |
+#ifndef SK_SCALAR_TO_FLOAT_EXCLUDED |
#define SkFloatToScalar(n) SkFloatToFixed(n) |
+#endif |
#define SkScalarToDouble(n) SkFixedToDouble(n) |
#define SkDoubleToScalar(n) SkDoubleToFixed(n) |