Index: include/core/SkAlpha.h |
diff --git a/include/core/SkAlpha.h b/include/core/SkAlpha.h |
index 9e0fcab0e2e96bd4338776cc9d1e1df605757801..74ea687f96095ba79537f3b66c79db726615c23e 100644 |
--- a/include/core/SkAlpha.h |
+++ b/include/core/SkAlpha.h |
@@ -47,4 +47,7 @@ enum SkAlphaType { |
kLastEnum_SkAlphaType = kUnpremul_SkAlphaType |
}; |
+static inline bool SkAlphaTypeIsOpaque(SkAlphaType at) { |
+ return (unsigned)at <= kOpaque_SkAlphaType; |
+} |
#endif |