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

Unified Diff: src/core/SkColor.cpp

Issue 1634273002: float components in xfermodes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: disable blitter for official checkin Created 4 years, 11 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
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

Powered by Google App Engine
This is Rietveld 408576698