Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: include/core/SkImageInfo.h

Issue 870023002: Don't use SK_ASSERT in header. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698