Searched refs:SkToSizeT (Results 1 – 12 of 12) sorted by relevance
25 return sk_calloc_throw(SkToSizeT(items) * SkToSizeT(size)); in skia_alloc_func()
90 if (SkToSizeT(segment.length()) < sizeof(kJfif) || in SkIsJFIF()
144 return SkToSizeT(bm.width()) * SkToSizeT(bm.height()); in pixel_count()
23 return sk_calloc_throw(SkToSizeT(items) * SkToSizeT(size)); in skia_alloc_func()
43 REPORTER_ASSERT(reporter, pm.getSafeSize() == SkToSizeT(w * h * sizeof(uint64_t))); in DEF_TEST()
295 dict->insertInt("n1", SkToSizeT(42)); in TestPDFDict()318 dict->insertInt("n2", SkToSizeT(99)); in TestPDFDict()
32 size_t bytesWritten() const override { return SkToSizeT(this->byteCount); } in bytesWritten()
54 size_t SkToSizeT(uintmax_t x) { in SkToSizeT() function
332 (void)this->seek(SkToSizeT(offset)); in move()
1166 SkAutoDataUnref data(SkData::NewUninitialized(SkToSizeT(ramSize))); in ReadRawPixels()1168 buffer->readByteArray(dst, SkToSizeT(snugSize)); in ReadRawPixels()
48 size_t length = SkTMin(SkToSizeT(fEndIndex - fStartIndex), size); in read()
268 SK_API size_t SkToSizeT(uintmax_t);278 #define SkToSizeT(x) ((size_t)(x)) macro