Lines Matching refs:pmap
269 sk_sp<SkImage> SkImage::MakeRasterCopy(const SkPixmap& pmap) { in MakeRasterCopy() argument
271 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), in MakeRasterCopy()
272 pmap.ctable() != nullptr, &size) || !pmap.addr()) { in MakeRasterCopy()
277 sk_sp<SkData> data(SkData::MakeWithCopy(pmap.addr(), size)); in MakeRasterCopy()
278 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes(), pmap.ctable()); in MakeRasterCopy()
298 sk_sp<SkImage> SkImage::MakeFromRaster(const SkPixmap& pmap, RasterReleaseProc proc, in MakeFromRaster() argument
301 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), pmap.ctable(), &size) || in MakeFromRaster()
302 !pmap.addr()) in MakeFromRaster()
307 sk_sp<SkData> data(SkData::MakeWithProc(pmap.addr(), size, proc, ctx)); in MakeFromRaster()
308 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes(), pmap.ctable()); in MakeFromRaster()
325 SkPixmap pmap; in SkMakeImageFromRasterBitmap() local
326 if (tmp.getPixels() && tmp.peekPixels(&pmap)) { in SkMakeImageFromRasterBitmap()
327 return SkImage::MakeRasterCopy(pmap); in SkMakeImageFromRasterBitmap()