Home | History | Annotate | Download | only in core

Lines Matching defs:bitmap

68 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap)
69 : INHERITED(bitmap.info(), SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType))
70 , fBitmap(bitmap)
71 , fRCStack(bitmap.width(), bitmap.height())
73 SkASSERT(valid_for_bitmap_device(bitmap.info(), nullptr));
80 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap, const SkSurfaceProps& surfaceProps,
82 : INHERITED(bitmap.info(), surfaceProps)
83 , fBitmap(bitmap)
85 , fRCStack(bitmap.width(), bitmap.height())
87 SkASSERT(valid_for_bitmap_device(bitmap.info(), nullptr));
100 SkBitmap bitmap;
103 if (!bitmap.setInfo(info)) {
107 hndl = allocator->allocBitmap(info, &bitmap);
112 // If this bitmap is opaque, we don't have any sensible default color,
114 if (!bitmap.tryAllocPixels(info)) {
118 // This bitmap has transparency, so we'll zero the pixels (to transparent).
120 if (!bitmap.tryAllocPixelsFlags(info, SkBitmap::kZeroPixels_AllocFlag)) {
125 return new SkBitmapDevice(bitmap, surfaceProps, hndl);
229 void SkBitmapDevice::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y,
233 BDDraw(this).drawBitmap(bitmap, matrix, nullptr, paint);
245 void SkBitmapDevice::drawBitmapRect(const SkBitmap& bitmap,
252 bitmapBounds.isetWH(bitmap.width(), bitmap.height());
265 const SkBitmap* bitmapPtr = &bitmap;
267 // clip the tmpSrc to the bounds of the bitmap, and recompute dstRect if
283 // src is smaller than the bounds of the bitmap, and we are filtering, so we don't know
284 // how much more of the bitmap we need, so we can't use extractSubset or drawBitmap,
285 // but we must use a shader w/ dst bounds (which can access all of the bitmap needed).
291 // the bitmap, we extract a subset.
293 if (!bitmap.extractSubset(&tmpBitmap, srcIR)) {
337 // can save malloc calls, and signals to SkMakeBitmapShader to not try to copy the bitmap
356 void SkBitmapDevice::drawSprite(const SkBitmap& bitmap, int x, int y, const SkPaint& paint) {
357 BDDraw(this).drawSprite(bitmap, x, y, paint);
497 sk_sp<SkSpecialImage> SkBitmapDevice::makeSpecial(const SkBitmap& bitmap) {
498 return SkSpecialImage::MakeFromRaster(bitmap.bounds(), bitmap);