Lines Matching defs:mask
708 const SkMask* mask = &srcM;
714 mask = &dstM;
731 blitter->blitMaskRegion(*mask, *clipRgn);
979 SkMask mask;
980 mask.fBounds.setXYWH(ix, iy, pmap.width(), pmap.height());
981 mask.fFormat = SkMask::kA8_Format;
982 mask.fRowBytes = SkToU32(pmap.rowBytes());
984 mask.fImage = (uint8_t*)pmap.addr8(0, 0);
986 this->drawDevMask(mask, paint);
989 SkMask mask;
993 r.round(&mask.fBounds);
995 // set the mask's bounds to the transformed bitmap-bounds,
1002 if (!mask.fBounds.intersect(devBounds)) {
1007 mask.fFormat = SkMask::kA8_Format;
1008 mask.fRowBytes = SkAlign4(mask.fBounds.width());
1009 size_t size = mask.computeImageSize();
1011 // the mask is too big to allocated, draw nothing
1017 mask.fImage = storage.get();
1018 memset(mask.fImage, 0, size);
1020 // now draw our bitmap(src) into mask(dst), transformed by the matrix
1023 device.installPixels(SkImageInfo::MakeA8(mask.fBounds.width(), mask.fBounds.height()),
1024 mask.fImage, mask.fRowBytes);
1028 c.translate(-SkIntToScalar(mask.fBounds.fLeft),
1029 -SkIntToScalar(mask.fBounds.fTop));
1033 // we manually build a shader and draw that into our new mask
1042 this->drawDevMask(mask, paint);
1245 static void draw_into_mask(const SkMask& mask, const SkPath& devPath,
1248 if (!draw.fDst.reset(mask)) {
1256 clip.setRect(SkIRect::MakeWH(mask.fBounds.width(), mask.fBounds.height()));
1257 matrix.setTranslate(-SkIntToScalar(mask.fBounds.fLeft),
1258 -SkIntToScalar(mask.fBounds.fTop));
1279 SkMask* mask, SkMask::CreateMode mode,
1287 filterMatrix, &mask->fBounds))
1292 mask->fFormat = SkMask::kA8_Format;
1293 mask->fRowBytes = mask->fBounds.width();
1294 size_t size = mask->computeImageSize();
1296 // we're too big to allocate the mask, abort
1299 mask->fImage = SkMask::AllocImage(size, SkMask::kZeroInit_Alloc);
1303 draw_into_mask(*mask, devPath, style);