diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkImageInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkImageInfo.cpp b/src/core/SkImageInfo.cpp index 8006441574..1baf0b77de 100644 --- a/src/core/SkImageInfo.cpp +++ b/src/core/SkImageInfo.cpp @@ -71,11 +71,11 @@ static SkColorType stored_to_live(unsigned stored) { /////////////////////////////////////////////////////////////////////////////////////////////////// static bool alpha_type_is_valid(SkAlphaType alphaType) { - return (alphaType >= 0) && (alphaType <= kLastEnum_SkAlphaType); + return (alphaType >= kUnknown_SkAlphaType) && (alphaType <= kLastEnum_SkAlphaType); } static bool color_type_is_valid(SkColorType colorType) { - return (colorType >= 0) && (colorType <= kLastEnum_SkColorType); + return (colorType >= kUnknown_SkColorType) && (colorType <= kLastEnum_SkColorType); } SkImageInfo SkImageInfo::MakeS32(int width, int height, SkAlphaType at) { |