Home
last modified time | relevance | path

Searched refs:getSafeSize (Results 1 – 22 of 22) sorted by relevance

/external/skia/tests/
DMallocPixelRefTest.cpp34 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()
DSwizzlerTest.cpp29 const size_t totalBytes = imageInfo.getSafeSize(rowBytes) + offset; in check_fill()
DCodexTest.cpp180 size_t totalBytes = scaledInfo.getSafeSize(rowBytes); in test_dimensions()
DSurfaceTest.cpp48 void* storage = sk_malloc_throw(info.getSafeSize(rowBytes)); in createSurface()
135 size_t size = info.getSafeSize(rowBytes); in test_image()
DWritePixelsTest.cpp304 const size_t size = info.getSafeSize(rowBytes); in create_surface()
DImageDecodingTest.cpp703 if (bm->info().getSafeSize(bm->rowBytes()) <= fSize) { in allocPixelRef()
DBitmapCopyTest.cpp474 successExpected = subset.getSafeSize() <= bufSize; in DEF_TEST()
DCanvasTest.cpp693 const size_t size = info.getSafeSize(minRowBytes); in test_newraster()
/external/skia/src/core/
DSkMallocPixelRef.cpp81 SkASSERT(size >= info.getSafeSize(rowBytes)); in NewAllocate()
118 || (data->size() < info.getSafeSize(rowBytes))) { in NewWithData()
200 return this->info().getSafeSize(fRB); in getAllocatedSizeInBytes()
DSkResourceCache.cpp143 return this->info().getSafeSize(fRB); in getAllocatedSizeInBytes()
DSkBitmap.cpp446 size_t safeSize = this->getSafeSize(); in copyPixelsTo()
460 if (fInfo.getSafeSize(dstRowBytes) > dstSize) { in copyPixelsTo()
DSkScalerContext.cpp420 sk_bzero(bm.getPixels(), bm.getSafeSize()); in generateMask()
DSkBitmapProcState.cpp111 return bm.info().getSafeSize(bm.info().minRowBytes()) in cache_size_okay()
/external/skia/bench/
DCodecBench.cpp62 fPixelStorage.reset(fInfo.getSafeSize(fInfo.minRowBytes())); in onPreDraw()
DDecodingBench.cpp72 fPixelStorage.reset(bm.info().getSafeSize(rowBytes)); in onPreDraw()
Dnanobench.cpp693 SkAutoMalloc storage(info.getSafeSize(rowBytes)); in next()
/external/skia/include/core/
DSkBitmap.h142 size_t getSafeSize() const { return fInfo.getSafeSize(fRowBytes); } in getSafeSize() function
DSkImageInfo.h267 size_t getSafeSize(size_t rowBytes) const { in getSafeSize() function
/external/skia/src/lazy/
DSkDiscardablePixelRef.cpp55 const size_t size = this->info().getSafeSize(fRowBytes); in onNewLockPixels()
/external/skia/src/gpu/
DGrSWMaskHelper.cpp213 sk_bzero(fBM.getPixels(), fBM.getSafeSize()); in init()
DGrAADistanceFieldPathRenderer.cpp363 sk_bzero(bmp.getPixels(), bmp.getSafeSize()); in addPathToAtlas()
/external/skia/src/codec/
DSkSwizzler.cpp464 const size_t bytesToFill = dstInfo.makeWH(dstInfo.width(), numRows).getSafeSize(dstRowBytes); in Fill()