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

Unified Diff: include/core/SkColor.h

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: include/core/SkColor.h
diff --git a/include/core/SkColor.h b/include/core/SkColor.h
index 099771af9890b478f4e5b4ccbe40c3567630ac28..461a53877dd799db9d989f98da9be8d767d85010 100644
--- a/include/core/SkColor.h
+++ b/include/core/SkColor.h
@@ -172,11 +172,15 @@ struct SkPM4f {
};
float fVec[4];
- float a() const { return fVec[3]; }
+ float a() const { return fVec[A]; }
static SkPM4f FromPMColor(SkPMColor);
- bool isUnit() const;
+#ifdef SK_DEBUG
+ void assertIsUnit() const;
+#else
+ void assertIsUnit() const {}
+#endif
};
/*
« no previous file with comments | « gyp/core.gypi ('k') | include/core/SkXfermode.h » ('j') | include/core/SkXfermode.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698