Home | History | Annotate | Download | only in core

Lines Matching defs:bitmap

60 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap) : fBitmap(bitmap) {
61 SkASSERT(valid_for_bitmap_device(bitmap.info(), NULL));
64 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap, const SkDeviceProperties& deviceProperties)
66 , fBitmap(bitmap)
68 SkASSERT(valid_for_bitmap_device(bitmap.info(), NULL));
78 SkBitmap bitmap;
81 if (!bitmap.setInfo(info)) {
85 if (!bitmap.allocPixels(info)) {
88 if (!bitmap.info().isOpaque()) {
89 bitmap.eraseColor(SK_ColorTRANSPARENT);
94 return SkNEW_ARGS(SkBitmapDevice, (bitmap, *props));
96 return SkNEW_ARGS(SkBitmapDevice, (bitmap));
307 void SkBitmapDevice::drawBitmap(const SkDraw& draw, const SkBitmap& bitmap,
309 draw.drawBitmap(bitmap, matrix, paint);
312 void SkBitmapDevice::drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap,
320 bitmapBounds.isetWH(bitmap.width(), bitmap.height());
331 const SkBitmap* bitmapPtr = &bitmap;
333 // clip the tmpSrc to the bounds of the bitmap, and recompute dstRect if
346 // the bitmap, we extract a subset.
349 if (!bitmap.extractSubset(&tmpBitmap, srcIR)) {
399 void SkBitmapDevice::drawSprite(const SkDraw& draw, const SkBitmap& bitmap,
401 draw.drawSprite(bitmap, x, y, paint);