aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkLiteDL.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-08-09 16:37:47 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-09 16:37:47 -0700
commitcd8864111d191be4db42a478d6bf877eb50277a7 (patch)
tree52fc10fdb3ba87fbda49b5a052974483caebfb97 /src/core/SkLiteDL.cpp
parentb20283357a09300353dd62962086f3791161e3b8 (diff)
constexpr infinity
~/skia (inf) $ nm /tmp/rel/obj/src/core/libskia.SkLiteDL.o | grep GLOBAL__sub <nothing> TBR=halcanary@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2228203002 Review-Url: https://codereview.chromium.org/2228203002
Diffstat (limited to 'src/core/SkLiteDL.cpp')
-rw-r--r--src/core/SkLiteDL.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/SkLiteDL.cpp b/src/core/SkLiteDL.cpp
index 87b6f30520..4557b375a8 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};
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.