| 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
|
| };
|
|
|
| /*
|
|
|