Main
Named Fiddles
Skia Fiddle
Skia Version:
3d1a3b
void draw(SkCanvas* canvas) { for (int shift = 24; shift < 31; ++shift) { int width = 1 << shift; SkImageInfo imageInfo = SkImageInfo::Make(width, 1, kRGBA_F16_SkColorType, kPremul_SkAlphaType); uint64_t minRowBytes = imageInfo.minRowBytes64(); bool widthTooLarge = (uint64_t) (int32_t) minRowBytes != minRowBytes; SkDebugf("RGBA_F16 width %d (0x%08x) %s\n", width, width, widthTooLarge ? "too large" : "OK"); } }
Skia API Documentation