Index: src/core/SkColor.cpp |
diff --git a/src/core/SkColor.cpp b/src/core/SkColor.cpp |
index 9deac7a197689d9bd2f5a41b8c8bb9e429a49b48..cf6e0b2e9f38d7a15456ff6f13eca00d43fd7fde 100644 |
--- a/src/core/SkColor.cpp |
+++ b/src/core/SkColor.cpp |
@@ -142,7 +142,9 @@ SkPM4f SkColor4f::premul() const { |
return pm4; |
} |
-bool SkPM4f::isUnit() const { |
+#ifdef SK_DEBUG |
+void SkPM4f::assertIsUnit() const { |
auto c4 = Sk4f::Load(fVec); |
- return (c4 >= Sk4f(0)).allTrue() && (c4 <= Sk4f(1)).allTrue(); |
+ SkASSERT((c4 >= Sk4f(0)).allTrue() && (c4 <= Sk4f(1)).allTrue()); |
} |
+#endif |