Lines Matching refs:pmap
260 sk_sp<SkImage> MakeRasterCopyPriv(const SkPixmap& pmap, uint32_t id) { in MakeRasterCopyPriv() argument
262 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) { in MakeRasterCopyPriv()
267 sk_sp<SkData> data(SkData::MakeWithCopy(pmap.addr(), size)); in MakeRasterCopyPriv()
268 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes(), id); in MakeRasterCopyPriv()
271 sk_sp<SkImage> SkImage::MakeRasterCopy(const SkPixmap& pmap) { in MakeRasterCopy() argument
272 return MakeRasterCopyPriv(pmap, kNeedNewImageUniqueID); in MakeRasterCopy()
290 sk_sp<SkImage> SkImage::MakeFromRaster(const SkPixmap& pmap, RasterReleaseProc proc, in MakeFromRaster() argument
293 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) { in MakeFromRaster()
297 sk_sp<SkData> data(SkData::MakeWithProc(pmap.addr(), size, proc, ctx)); in MakeFromRaster()
298 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes()); in MakeFromRaster()
304 SkPixmap pmap; in SkMakeImageFromRasterBitmapPriv() local
305 if (bm.peekPixels(&pmap)) { in SkMakeImageFromRasterBitmapPriv()
306 return MakeRasterCopyPriv(pmap, idForCopy); in SkMakeImageFromRasterBitmapPriv()