Index: include/core/SkScalar.h |
diff --git a/include/core/SkScalar.h b/include/core/SkScalar.h |
index 443454a2efc4805d6d3a738175e29abc210d5f61..2c42eb8e895b371fad9713a0af0e57f3e74f87de 100644 |
--- a/include/core/SkScalar.h |
+++ b/include/core/SkScalar.h |
@@ -184,7 +184,9 @@ static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } |
#define SkScalarMul(a, b) ((SkScalar)(a) * (b)) |
#define SkScalarMulAdd(a, b, c) ((SkScalar)(a) * (b) + (c)) |
-#define SkScalarDiv(a, b) ((SkScalar)(a) / (b)) |
+#ifdef SK_SUPPORT_LEGACY_SCALAR_DIV |
+ #define SkScalarDiv(a, b) ((SkScalar)(a) / (b)) |
+#endif |
#define SkScalarMulDiv(a, b, c) ((SkScalar)(a) * (b) / (c)) |
#define SkScalarInvert(x) (SK_Scalar1 / (x)) |
#define SkScalarFastInvert(x) (SK_Scalar1 / (x)) |