Lines Matching refs:bm
93 bool SkSpecialImage::getROPixels(SkBitmap* bm) const {
94 return as_SIB(this)->onGetROPixels(bm);
175 SkBitmap bm;
176 if (as_IB(image)->getROPixels(nullptr, &bm)) {
177 return MakeFromRaster(subset, bm, props);
186 SkSpecialImage_Raster(const SkIRect& subset, const SkBitmap& bm, const SkSurfaceProps& props)
187 : INHERITED(subset, bm.getGenerationID(), props)
188 , fBitmap(bm)
190 SkASSERT(bm.pixelRef());
209 bool onGetROPixels(SkBitmap* bm) const override {
210 return fBitmap.extractSubset(bm, this->subset());
270 const SkBitmap& bm,
272 SkASSERT(rect_fits(subset, bm.width(), bm.height()));
274 if (!bm.pixelRef()) {
278 const SkBitmap* srcBM = &bm;
281 if (!valid_for_imagefilters(bm.info())) {
282 if (!tmp.tryAllocPixels(bm.info().makeColorType(kN32_SkColorType)) ||
283 !bm.readPixels(tmp.info(), tmp.getPixels(), tmp.rowBytes(), 0, 0))
293 const SkBitmap& bm,
295 SkASSERT(rect_fits(subset, bm.width(), bm.height()));
297 if (!bm.pixelRef()) {
302 SkImageInfo info = bm.info().makeDimensions(subset.size());
304 if (!valid_for_imagefilters(bm.info())) {
310 if (!bm.readPixels(tmp.info(), tmp.getPixels(), tmp.rowBytes(), subset.x(), subset.y())) {