add as experiment to factor out low-level enums and types
authormike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 20 Feb 2013 02:49:16 +0000 (02:49 +0000)
committermike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 20 Feb 2013 02:49:16 +0000 (02:49 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@7786 2bbb7eff-a529-9590-31e7-b0007b416f81

include/core/SkImageTypes.h [new file with mode: 0644]

diff --git a/include/core/SkImageTypes.h b/include/core/SkImageTypes.h
new file mode 100644 (file)
index 0000000..03abde1
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2013 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkImageTypes_DEFINED
+#define SkImageTypes_DEFINED
+
+#include "SkTypes.h"
+
+enum SkColorType {
+    kAlpha_8_SkColorType,
+    kRGB_565_SkColorType,
+//    kRGBA_8888_SkColorType,
+//    kBGRA_8888_SkColorType,
+    kPMColor_SkColorType,
+    
+    kLastEnum_SkColorType = kPMColor_SkColorType
+};
+
+enum SkAlphaType {
+//    kIgnore_SkAlphaType,
+    kOpaque_SkAlphaType,
+//    kUnpremul_SkAlphaType,
+    kPremul_SkAlphaType,
+    
+    kLastEnum_SkAlphaType = kPremul_SkAlphaType
+};
+
+struct SkImageInfo {
+    int         fWidth;
+    int         fHeight;
+    SkColorType fColorType;
+    SkAlphaType fAlphaType;
+};
+
+#endif