Index: src/core/SkXfermode.cpp |
diff --git a/src/core/SkXfermode.cpp b/src/core/SkXfermode.cpp |
index 7002e9a533b610b52f4c527e46a6628c724e5fa3..262e5265c7aeb1b541ab347ac4b2b4b248c07cde 100644 |
--- a/src/core/SkXfermode.cpp |
+++ b/src/core/SkXfermode.cpp |
@@ -928,8 +928,9 @@ static Sk4f as_4f(const SkPM4f& pm4) { |
static void assert_unit(const SkPM4f& r) { |
#ifdef SK_DEBUG |
- const float min = 0; |
- const float max = 1; |
+ const float eps = 0.00001f; |
+ const float min = 0 - eps; |
+ const float max = 1 + eps; |
for (int i = 0; i < 4; ++i) { |
SkASSERT(r.fVec[i] >= min && r.fVec[i] <= max); |
} |