| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright 2013 Google Inc. | |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license that can be | |
| 5 * found in the LICENSE file. | |
| 6 */ | |
| 7 | |
| 8 #ifndef SkImageTypes_DEFINED | |
| 9 #define SkImageTypes_DEFINED | |
| 10 | |
| 11 #include "SkTypes.h" | |
| 12 | |
| 13 enum SkColorType { | |
| 14 kAlpha_8_SkColorType, | |
| 15 kRGB_565_SkColorType, | |
| 16 // kRGBA_8888_SkColorType, | |
| 17 // kBGRA_8888_SkColorType, | |
| 18 kPMColor_SkColorType, | |
| 19 | |
| 20 kLastEnum_SkColorType = kPMColor_SkColorType | |
| 21 }; | |
| 22 | |
| 23 enum SkAlphaType { | |
| 24 // kIgnore_SkAlphaType, | |
| 25 kOpaque_SkAlphaType, | |
| 26 // kUnpremul_SkAlphaType, | |
| 27 kPremul_SkAlphaType, | |
| 28 | |
| 29 kLastEnum_SkAlphaType = kPremul_SkAlphaType | |
| 30 }; | |
| 31 | |
| 32 struct SkImageInfo { | |
| 33 int fWidth; | |
| 34 int fHeight; | |
| 35 SkColorType fColorType; | |
| 36 SkAlphaType fAlphaType; | |
| 37 }; | |
| 38 | |
| 39 #endif | |
| OLD | NEW |