Patch SkImage.h so Chrome will compile
git-svn-id: http://skia.googlecode.com/svn/trunk@11429 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index 8e5b8cd..beede03 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -54,12 +54,12 @@
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;