aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/core/SkImage.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index 8e5b8cd02e..beede0338a 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -54,12 +54,12 @@ public:
kLastEnum_ColorType = kBGRA_8888_ColorType
};
- enum AlphaType {
- kIgnore_AlphaType = kIgnore_SkAlphaType,
- kOpaque_AlphaType = kOpaque_SkAlphaType,
- kPremul_AlphaType = kPremul_SkAlphaType,
- kUnpremul_AlphaType = kUnpremul_SkAlphaType,
- };
+ typedef SkAlphaType AlphaType;
+
+ static const SkAlphaType kIgnore_AlphaType = kIgnore_SkAlphaType;
+ static const SkAlphaType kOpaque_AlphaType = kOpaque_SkAlphaType;
+ static const SkAlphaType kPremul_AlphaType = kPremul_SkAlphaType;
+ static const SkAlphaType kUnpremul_AlphaType = kUnpremul_SkAlphaType;
struct Info {
int fWidth;