Lines Matching defs:fBitmap
29 SkBitmap fBitmap;
102 fBitmap.installPixels(info, pixels, rb, releaseProc, context);
111 fBitmap.setInfo(info, pr->rowBytes());
113 fBitmap.setPixelRef(std::move(pr), 0, 0);
117 SkCanvas* SkSurface_Raster::onNewCanvas() { return new SkCanvas(fBitmap, this->props()); }
125 canvas->drawBitmap(fBitmap, x, y, paint);
133 if (SkPixelRef* pr = fBitmap.pixelRef()) {
142 return SkMakeImageFromRasterBitmap(fBitmap, cpm);
147 if (SkPixelRef* pr = fBitmap.pixelRef()) {
156 if (SkBitmapImageGetPixelRef(cached.get()) == fBitmap.pixelRef()) {
159 fBitmap.allocPixels();
161 SkBitmap prev(fBitmap);
162 fBitmap.allocPixels();
163 SkASSERT(prev.info() == fBitmap.info());
164 SkASSERT(prev.rowBytes() == fBitmap.rowBytes());
165 memcpy(fBitmap.getPixels(), prev.getPixels(), fBitmap.getSafeSize());
167 SkASSERT(fBitmap.rowBytes() == fRowBytes); // be sure we always use the same value
169 // Now fBitmap is a deep copy of itself (and therefore different from
173 this->getCachedCanvas()->getDevice()->replaceBitmapBackendForRasterSurface(fBitmap);