Lines Matching refs:rowBytes
40 bool SkSurfaceValidateRasterInfo(const SkImageInfo& info, size_t rowBytes) { in SkSurfaceValidateRasterInfo() argument
45 if (kIgnoreRowBytesValue == rowBytes) { in SkSurfaceValidateRasterInfo()
52 if (minRB > rowBytes) { in SkSurfaceValidateRasterInfo()
56 size_t alignedRowBytes = rowBytes >> shift << shift; in SkSurfaceValidateRasterInfo()
57 if (alignedRowBytes != rowBytes) { in SkSurfaceValidateRasterInfo()
61 uint64_t size = sk_64_mul(info.height(), rowBytes); in SkSurfaceValidateRasterInfo()
84 fBitmap.setInfo(info, pr->rowBytes()); in SkSurface_Raster()
85 fRowBytes = pr->rowBytes(); // we track this, so that subsequent re-allocs will match in SkSurface_Raster()
150 SkASSERT(prev.rowBytes() == fBitmap.rowBytes()); in onCopyOnWrite()
153 SkASSERT(fBitmap.rowBytes() == fRowBytes); // be sure we always use the same value in onCopyOnWrite()
181 sk_sp<SkSurface> SkSurface::MakeRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes, in MakeRasterDirect() argument
183 return MakeRasterDirectReleaseProc(info, pixels, rowBytes, nullptr, nullptr, props); in MakeRasterDirect()
186 sk_sp<SkSurface> SkSurface::MakeRaster(const SkImageInfo& info, size_t rowBytes, in MakeRaster() argument
192 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeZeroed(info, rowBytes); in MakeRaster()
196 if (rowBytes) { in MakeRaster()
197 SkASSERT(pr->rowBytes() == rowBytes); in MakeRaster()