Searched refs:getSafeSize (Results 1 – 22 of 22) sorted by relevance
34 size_t size = info.getSafeSize(rowBytes); in DEF_TEST()43 size_t size = info.getSafeSize(rowBytes) - 1; in DEF_TEST()51 size_t size = info.getSafeSize(rowBytes) + 9; in DEF_TEST()
29 const size_t totalBytes = imageInfo.getSafeSize(rowBytes) + offset; in check_fill()
180 size_t totalBytes = scaledInfo.getSafeSize(rowBytes); in test_dimensions()
48 void* storage = sk_malloc_throw(info.getSafeSize(rowBytes)); in createSurface()135 size_t size = info.getSafeSize(rowBytes); in test_image()
304 const size_t size = info.getSafeSize(rowBytes); in create_surface()
703 if (bm->info().getSafeSize(bm->rowBytes()) <= fSize) { in allocPixelRef()
474 successExpected = subset.getSafeSize() <= bufSize; in DEF_TEST()
693 const size_t size = info.getSafeSize(minRowBytes); in test_newraster()
81 SkASSERT(size >= info.getSafeSize(rowBytes)); in NewAllocate()118 || (data->size() < info.getSafeSize(rowBytes))) { in NewWithData()200 return this->info().getSafeSize(fRB); in getAllocatedSizeInBytes()
143 return this->info().getSafeSize(fRB); in getAllocatedSizeInBytes()
446 size_t safeSize = this->getSafeSize(); in copyPixelsTo()460 if (fInfo.getSafeSize(dstRowBytes) > dstSize) { in copyPixelsTo()
420 sk_bzero(bm.getPixels(), bm.getSafeSize()); in generateMask()
111 return bm.info().getSafeSize(bm.info().minRowBytes()) in cache_size_okay()
62 fPixelStorage.reset(fInfo.getSafeSize(fInfo.minRowBytes())); in onPreDraw()
72 fPixelStorage.reset(bm.info().getSafeSize(rowBytes)); in onPreDraw()
693 SkAutoMalloc storage(info.getSafeSize(rowBytes)); in next()
142 size_t getSafeSize() const { return fInfo.getSafeSize(fRowBytes); } in getSafeSize() function
267 size_t getSafeSize(size_t rowBytes) const { in getSafeSize() function
55 const size_t size = this->info().getSafeSize(fRowBytes); in onNewLockPixels()
213 sk_bzero(fBM.getPixels(), fBM.getSafeSize()); in init()
363 sk_bzero(bmp.getPixels(), bmp.getSafeSize()); in addPathToAtlas()
464 const size_t bytesToFill = dstInfo.makeWH(dstInfo.width(), numRows).getSafeSize(dstRowBytes); in Fill()