Lines Matching refs:pmap
257 sk_sp<SkImage> MakeRasterCopyPriv(const SkPixmap& pmap, uint32_t id) { in MakeRasterCopyPriv() argument
259 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) { in MakeRasterCopyPriv()
264 sk_sp<SkData> data(SkData::MakeWithCopy(pmap.addr(), size)); in MakeRasterCopyPriv()
265 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes(), id); in MakeRasterCopyPriv()
268 sk_sp<SkImage> SkImage::MakeRasterCopy(const SkPixmap& pmap) { in MakeRasterCopy() argument
269 return MakeRasterCopyPriv(pmap, kNeedNewImageUniqueID); in MakeRasterCopy()
287 sk_sp<SkImage> SkImage::MakeFromRaster(const SkPixmap& pmap, RasterReleaseProc proc, in MakeFromRaster() argument
290 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) { in MakeFromRaster()
294 sk_sp<SkData> data(SkData::MakeWithProc(pmap.addr(), size, proc, ctx)); in MakeFromRaster()
295 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes()); in MakeFromRaster()
301 SkPixmap pmap; in SkMakeImageFromRasterBitmapPriv() local
302 if (bm.peekPixels(&pmap)) { in SkMakeImageFromRasterBitmapPriv()
303 return MakeRasterCopyPriv(pmap, idForCopy); in SkMakeImageFromRasterBitmapPriv()