Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: src/core/SkLiteDL.cpp

Issue 2233853002: constexpr NaN,+Inf,-Inf (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/private/SkFloatingPoint.h ('k') | src/core/SkMath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkLiteDL.cpp
diff --git a/src/core/SkLiteDL.cpp b/src/core/SkLiteDL.cpp
index 4557b375a864cc39a0a2f90488b0fec1b4970f0d..c6a3a8e8ea47feaff82e570a4802feea3eeed12a 100644
--- a/src/core/SkLiteDL.cpp
+++ b/src/core/SkLiteDL.cpp
@@ -14,12 +14,11 @@
#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 = {(SkScalar)INFINITY, 0,0,0};
+static const SkRect kUnset = { SK_ScalarInfinity, 0,0,0};
static const SkRect* maybe_unset(const SkRect& r) {
- return r.left() == (SkScalar)INFINITY ? nullptr : &r;
+ return r.left() == SK_ScalarInfinity ? nullptr : &r;
}
// copy_v(dst, src,n, src,n, ...) copies an arbitrary number of typed srcs into dst.
« no previous file with comments | « include/private/SkFloatingPoint.h ('k') | src/core/SkMath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698