Chromium Code Reviews| Index: include/core/SkImageInfo.h |
| diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h |
| index 341ec143a2273e22fdc10fdf359c0098b326d114..5d6b1335702e7e401d9557f601a28ef5480d5f8b 100644 |
| --- a/include/core/SkImageInfo.h |
| +++ b/include/core/SkImageInfo.h |
| @@ -105,8 +105,6 @@ static int SkColorTypeBytesPerPixel(SkColorType ct) { |
| }; |
| SK_COMPILE_ASSERT(SK_ARRAY_COUNT(gSize) == (size_t)(kLastEnum_SkColorType + 1), |
| size_mismatch_with_SkColorType_enum); |
| - |
| - SkASSERT((size_t)ct < SK_ARRAY_COUNT(gSize)); |
|
dshwang
2015/01/23 15:37:48
I think this ASSERT is covered by above SK_COMPILE
bsalomon
2015/01/23 15:55:50
I believe the assert is to guard against the case
|
| return gSize[ct]; |
| } |