Lines Matching refs:rowBytes
39 bool SkSurface_Raster::Valid(const SkImage::Info& info, size_t rowBytes) {
62 if (kIgnoreRowBytesValue == rowBytes) {
67 if (minRB > rowBytes) {
71 size_t alignedRowBytes = rowBytes >> shift << shift;
72 if (alignedRowBytes != rowBytes) {
76 uint64_t size = (uint64_t)info.fHeight * rowBytes;
149 SkSurface* SkSurface::NewRasterDirect(const SkImage::Info& info, void* pixels, size_t rowBytes) {
150 if (!SkSurface_Raster::Valid(info, rowBytes)) {
157 return SkNEW_ARGS(SkSurface_Raster, (info, pixels, rowBytes));
166 size_t rowBytes = SkImageMinRowBytes(info);
167 uint64_t size64 = (uint64_t)info.fHeight * rowBytes;
179 return SkNEW_ARGS(SkSurface_Raster, (info, pr, rowBytes));