Patch SkImage.h so Chrome will compile
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Sun, 22 Sep 2013 21:57:03 +0000 (21:57 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Sun, 22 Sep 2013 21:57:03 +0000 (21:57 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@11429 2bbb7eff-a529-9590-31e7-b0007b416f81

include/core/SkImage.h

index 8e5b8cd..beede03 100644 (file)
@@ -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;