• Home
  • Raw
  • Download

Lines Matching refs:fBitmap

31     SkBitmap    fBitmap;  member in SkSurface_Raster
75 fBitmap.installPixels(info, pixels, rb, releaseProc, context); in SkSurface_Raster()
84 fBitmap.setInfo(info, pr->rowBytes()); in SkSurface_Raster()
86 fBitmap.setPixelRef(std::move(pr), 0, 0); in SkSurface_Raster()
90 SkCanvas* SkSurface_Raster::onNewCanvas() { return new SkCanvas(fBitmap, this->props()); } in onNewCanvas()
98 canvas->drawBitmap(fBitmap, x, y, paint); in onDraw()
103 SkASSERT(SkIRect::MakeWH(fBitmap.width(), fBitmap.height()).contains(*subset)); in onNewImageSnapshot()
105 dst.allocPixels(fBitmap.info().makeWH(subset->width(), subset->height())); in onNewImageSnapshot()
106 SkAssertResult(fBitmap.readPixels(dst.pixmap(), subset->left(), subset->top())); in onNewImageSnapshot()
115 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onNewImageSnapshot()
124 return SkMakeImageFromRasterBitmap(fBitmap, cpm); in onNewImageSnapshot()
128 fBitmap.writePixels(src, x, y); in onWritePixels()
133 if (SkPixelRef* pr = fBitmap.pixelRef()) { in onRestoreBackingMutability()
142 if (SkBitmapImageGetPixelRef(cached.get()) == fBitmap.pixelRef()) { in onCopyOnWrite()
145 fBitmap.allocPixels(); in onCopyOnWrite()
147 SkBitmap prev(fBitmap); in onCopyOnWrite()
148 fBitmap.allocPixels(); in onCopyOnWrite()
149 SkASSERT(prev.info() == fBitmap.info()); in onCopyOnWrite()
150 SkASSERT(prev.rowBytes() == fBitmap.rowBytes()); in onCopyOnWrite()
151 memcpy(fBitmap.getPixels(), prev.getPixels(), fBitmap.computeByteSize()); in onCopyOnWrite()
153 SkASSERT(fBitmap.rowBytes() == fRowBytes); // be sure we always use the same value in onCopyOnWrite()
159 this->getCachedCanvas()->getDevice()->replaceBitmapBackendForRasterSurface(fBitmap); in onCopyOnWrite()