Home | History | Annotate | Download | only in image

Lines Matching refs:rowBytes

38 bool SkSurfaceValidateRasterInfo(const SkImageInfo& info, size_t rowBytes) {
74 if (kIgnoreRowBytesValue == rowBytes) {
81 if (minRB > rowBytes) {
85 size_t alignedRowBytes = rowBytes >> shift << shift;
86 if (alignedRowBytes != rowBytes) {
90 uint64_t size = sk_64_mul(info.height(), rowBytes);
104 fRowBytes = 0; // don't need to track the rowbytes
112 fBitmap.setInfo(info, pr->rowBytes());
113 fRowBytes = pr->rowBytes(); // we track this, so that subsequent re-allocs will match
165 SkASSERT(prev.rowBytes() == fBitmap.rowBytes());
168 SkASSERT(fBitmap.rowBytes() == fRowBytes); // be sure we always use the same value
196 sk_sp<SkSurface> SkSurface::MakeRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes,
198 return MakeRasterDirectReleaseProc(info, pixels, rowBytes, nullptr, nullptr, props);
201 sk_sp<SkSurface> SkSurface::MakeRaster(const SkImageInfo& info, size_t rowBytes,
207 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeZeroed(info, rowBytes);
211 if (rowBytes) {
212 SkASSERT(pr->rowBytes() == rowBytes);