Home | History | Annotate | Download | only in core

Lines Matching defs:bitmap

70 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap)
72 , fBitmap(bitmap) {
73 SkASSERT(valid_for_bitmap_device(bitmap.info(), nullptr));
80 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap, const SkSurfaceProps& surfaceProps)
82 , fBitmap(bitmap) {
83 SkASSERT(valid_for_bitmap_device(bitmap.info(), nullptr));
94 SkBitmap bitmap;
97 if (!bitmap.setInfo(info)) {
101 // If this bitmap is opaque, we don't have any sensible default color,
103 if (!bitmap.tryAllocPixels(info)) {
107 // This bitmap has transparency, so we'll zero the pixels (to transparent).
110 if (!bitmap.tryAllocPixels(info, &factory, nullptr/*color table*/)) {
115 return new SkBitmapDevice(bitmap, surfaceProps);
248 void SkBitmapDevice::drawBitmap(const SkDraw& draw, const SkBitmap& bitmap,
250 draw.drawBitmap(bitmap, matrix, nullptr, paint);
253 void SkBitmapDevice::drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap,
260 bitmapBounds.isetWH(bitmap.width(), bitmap.height());
271 const SkBitmap* bitmapPtr = &bitmap;
273 // clip the tmpSrc to the bounds of the bitmap, and recompute dstRect if
286 // the bitmap, we extract a subset.
288 if(bitmap.pixelRef()->getTexture()) {
291 bitmap.pixelRef()->readPixels(&tmpBitmap, kN32_SkColorType, &srcIR);
293 if (!bitmap.extractSubset(&tmpBitmap, srcIR)) {
344 void SkBitmapDevice::drawSprite(const SkDraw& draw, const SkBitmap& bitmap,
346 draw.drawSprite(bitmap, x, y, paint);