Index: tools/skpdiff/SkPMetric.cpp |
diff --git a/tools/skpdiff/SkPMetric.cpp b/tools/skpdiff/SkPMetric.cpp |
index 47880ac2916d372fc1eaf46f6fa175eec8b2dc71..a433d9f4b30576b1298a0dbf5acc5514e5b81f0b 100644 |
--- a/tools/skpdiff/SkPMetric.cpp |
+++ b/tools/skpdiff/SkPMetric.cpp |
@@ -162,7 +162,7 @@ static float contrast_sensitivity(float cyclesPerDegree, float luminance) { |
float b = 0.3f * powf(1.0f + 100.0f / luminance, 0.15f); |
float exp = expf(-b * cyclesPerDegree); |
float root = sqrtf(1.0f + 0.06f * expf(b * cyclesPerDegree)); |
- if (!std::isfinite(exp) || !std::isfinite(root)) { |
+ if (!SkScalarIsFinite(exp) || !SkScalarIsFinite(root)) { |
return 0; |
} |
return a * cyclesPerDegree * exp * root; |