commit | 395eabeb0e72334c45324874c6e009b54634df21 | [log] [tgz] |
---|---|---|
author | reed <reed@google.com> | Sat Jan 30 18:52:31 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Sat Jan 30 18:52:31 2016 -0800 |
tree | b6ff3f497e98db84417c3c6f6e8e2235c277101b | |
parent | afd25f703d9bbc9cd80b03b63b30abd14db4911d [diff] [blame] |
float components in xfermodes BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1623483002 TBR=mtklein Review URL: https://codereview.chromium.org/1634273002
diff --git a/include/core/SkColor.h b/include/core/SkColor.h index 099771a..461a538 100644 --- a/include/core/SkColor.h +++ b/include/core/SkColor.h
@@ -172,11 +172,15 @@ }; 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 }; /*