| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkAlpha_DEFINED | 8 #ifndef SkAlpha_DEFINED |
| 9 #define SkAlpha_DEFINED | 9 #define SkAlpha_DEFINED |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 * alpha. e.g. this is the default configuration for PNG images. | 40 * alpha. e.g. this is the default configuration for PNG images. |
| 41 * | 41 * |
| 42 * This alpha-type is ONLY supported for input images. Rendering cannot | 42 * This alpha-type is ONLY supported for input images. Rendering cannot |
| 43 * generate this on output. | 43 * generate this on output. |
| 44 */ | 44 */ |
| 45 kUnpremul_SkAlphaType, | 45 kUnpremul_SkAlphaType, |
| 46 | 46 |
| 47 kLastEnum_SkAlphaType = kUnpremul_SkAlphaType | 47 kLastEnum_SkAlphaType = kUnpremul_SkAlphaType |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 static inline bool SkAlphaTypeIsOpaque(SkAlphaType at) { |
| 51 return (unsigned)at <= kOpaque_SkAlphaType; |
| 52 } |
| 50 #endif | 53 #endif |
| OLD | NEW |