Index: src/core/SkLiteDL.cpp |
diff --git a/src/core/SkLiteDL.cpp b/src/core/SkLiteDL.cpp |
index 87b6f3052015f8772e333cdae86a49397d710abf..4557b375a864cc39a0a2f90488b0fec1b4970f0d 100644 |
--- a/src/core/SkLiteDL.cpp |
+++ b/src/core/SkLiteDL.cpp |
@@ -14,11 +14,12 @@ |
#include "SkRSXform.h" |
#include "SkSpinlock.h" |
#include "SkTextBlob.h" |
+#include <math.h> |
// A stand-in for an optional SkRect which was not set, e.g. bounds for a saveLayer(). |
-static const SkRect kUnset = {SK_ScalarInfinity, 0,0,0}; |
+static const SkRect kUnset = {(SkScalar)INFINITY, 0,0,0}; |
reed1
2016/08/10 11:53:16
If this is better, should we use this for our defi
|
static const SkRect* maybe_unset(const SkRect& r) { |
- return r.left() == SK_ScalarInfinity ? nullptr : &r; |
+ return r.left() == (SkScalar)INFINITY ? nullptr : &r; |
} |
// copy_v(dst, src,n, src,n, ...) copies an arbitrary number of typed srcs into dst. |