Lines Matching refs:fBitmap
77 const SkBitmap* onPeekBitmap() const override { return &fBitmap; } in onPeekBitmap()
87 SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } in getPixelRef()
94 , fBitmap(bm) { in SkImage_Raster()
95 SkASSERT(bitmapMayBeMutable || fBitmap.isImmutable()); in SkImage_Raster()
108 SkASSERT(fBitmap.pixelRef()); in notifyAddedToRasterCache()
109 fBitmap.pixelRef()->notifyAddedToCache(); in notifyAddedToRasterCache()
120 SkBitmap fBitmap; member in SkImage_Raster
143 fBitmap.installPixels(info, addr, rowBytes, release_data, data.release()); in SkImage_Raster()
144 fBitmap.setImmutable(); in SkImage_Raster()
155 SkBitmap shallowCopy(fBitmap); in onReadPixels()
160 return fBitmap.peekPixels(pm); in onPeekPixels()
164 *dst = fBitmap; in getROPixels()
180 SkColorTypeToGrColorType(fBitmap.colorType()), in asTextureProxyRef()
181 fBitmap.alphaType(), fPinnedUniqueID, fBitmap.colorSpace()); in asTextureProxyRef()
185 return GrRefCachedBitmapTextureProxy(context, fBitmap, params, scaleAdjust); in asTextureProxyRef()
209 fPinnedProxy = GrRefCachedBitmapTextureProxy(ctx, fBitmap, GrSamplerState::ClampNearest(), in onPinAsTexture()
214 fPinnedUniqueID = fBitmap.getGenerationID(); in onPinAsTexture()
234 SkImageInfo info = fBitmap.info().makeWH(subset.width(), subset.height()); in onMakeSubset()
241 void* src = fBitmap.getAddr(subset.x(), subset.y()); in onMakeSubset()
247 SkRectMemcpy(dst, bitmap.rowBytes(), src, fBitmap.rowBytes(), bitmap.rowBytes(), in onMakeSubset()
328 if (fBitmap.isImmutable()) { in onAsLegacyBitmap()
329 SkIPoint origin = fBitmap.pixelRefOrigin(); in onAsLegacyBitmap()
330 bitmap->setInfo(fBitmap.info(), fBitmap.rowBytes()); in onAsLegacyBitmap()
331 bitmap->setPixelRef(sk_ref_sp(fBitmap.pixelRef()), origin.x(), origin.y()); in onAsLegacyBitmap()
343 SkAssertResult(fBitmap.peekPixels(&src)); in onMakeColorTypeAndColorSpace()
346 dst.allocPixels(fBitmap.info().makeColorType(targetCT).makeColorSpace(targetCS)); in onMakeColorTypeAndColorSpace()
357 SkPixmap pixmap = fBitmap.pixmap(); in onReinterpretColorSpace()