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

Unified Diff: include/core/SkAlpha.h

Issue 26572006: Revert "Revert "change SkColorTable to be immutable"" (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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
« no previous file with comments | « gm/tinybitmap.cpp ('k') | include/core/SkBitmap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « gm/tinybitmap.cpp ('k') | include/core/SkBitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698