int64_t hi = this->nextS();
return (hi << 32) | this->nextU();
}
-
+
#ifdef SK_SUPPORT_LEGACY_SK64
SK_ATTR_DEPRECATED("use next64()")
void next64(Sk64* a) {
size_t rowBytes) {
int64_t safeSize = ComputeSafeSize64(config, width, height, rowBytes);
int32_t safeSize32 = (int32_t)safeSize;
-
+
if (safeSize32 != safeSize) {
safeSize32 = 0;
}
REPORTER_ASSERT(reporter, bm.setConfig(SkBitmap::kA8_Config, width, 1));
REPORTER_ASSERT(reporter, bm.setConfig(SkBitmap::kRGB_565_Config, width, 1));
-
+
// for a 4-byte config, this width will compute a rowbytes of 0x80000000,
// which does not fit in a int32_t. setConfig should detect this, and fail.
REPORTER_ASSERT(reporter, SkToBool(width & height) != bm.empty());
}
}
-
+
test_bigwidth(reporter);
}