Home
last modified time | relevance | path

Searched refs:srcM (Results 1 – 7 of 7) sorted by relevance

/external/skia/src/core/
DSkBlurMaskFilterImpl.cpp298 SkMaskBuilder srcM(nullptr, rrect.rect().roundOut(), 0, SkMask::kA8_Format), dstM; in filterRRectToNine() local
299 if (!this->filterMask(&dstM, srcM, matrix, &margin)) { in filterRRectToNine()
371 if (!draw_rrect_into_mask(smallRR, &srcM)) { in filterRRectToNine()
374 SkAutoMaskFreeImage amf(srcM.image()); // delete small rrect's pixels when done in filterRRectToNine()
388 if (!this->filterMask(&filterM, srcM, matrix, nullptr)) { in filterRRectToNine()
391 SkASSERT(filterM.fBounds.width() == (srcM.fBounds.width() + 2*margin.fX)); in filterRRectToNine()
392 SkASSERT(filterM.fBounds.height() == (srcM.fBounds.height() + 2*margin.fY)); in filterRRectToNine()
436 SkMaskBuilder srcM(nullptr, rects[0].roundOut(), 0, SkMask::kA8_Format), dstM; in filterRectsToNine() local
445 filterResult = this->filterMask(&dstM, srcM, matrix, &margin); in filterRectsToNine()
471 int smallW = dstM.fBounds.width() - srcM.fBounds.width() + 2; in filterRectsToNine()
[all …]
DSkBitmap.cpp545 SkMaskBuilder srcM, dstM; in extractAlpha() local
550 srcM.bounds().setWH(this->width(), this->height()); in extractAlpha()
551 srcM.rowBytes() = SkAlign4(this->width()); in extractAlpha()
552 srcM.format() = SkMask::kA8_Format; in extractAlpha()
559 if (!as_MFB(filter)->filterMask(&dstM, srcM, identity, nullptr)) { in extractAlpha()
565 tmpBitmap.setInfo(SkImageInfo::MakeA8(this->width(), this->height()), srcM.fRowBytes); in extractAlpha()
572 GetBitmapAlpha(*this, tmpBitmap.getAddr8(0, 0), srcM.fRowBytes); in extractAlpha()
579 srcM.image() = SkMaskBuilder::AllocImage(srcM.computeImageSize()); in extractAlpha()
580 SkAutoMaskFreeImage srcCleanup(srcM.image()); in extractAlpha()
582 GetBitmapAlpha(*this, srcM.image(), srcM.fRowBytes); in extractAlpha()
[all …]
DSkMaskFilterBase.cpp254 SkMaskBuilder srcM, dstM; in filterPath() local
261 if (!SkDraw::DrawToMask(devPath, clip.getBounds(), this, &matrix, &srcM, in filterPath()
266 SkAutoMaskFreeImage autoSrc(srcM.image()); in filterPath()
268 if (!this->filterMask(&dstM, srcM, matrix, nullptr)) { in filterPath()
304 SkMask srcM(nullptr, src.roundOut(), 0, SkMask::kA8_Format); in computeFastBounds() local
308 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { in computeFastBounds()
311 dst->set(srcM.fBounds); in computeFastBounds()
DSkColorSpaceXformSteps.cpp64 skcms_Matrix3x3 srcM, dstM; in SkColorSpaceXformSteps() local
65 src->toXYZD50(&srcM); in SkColorSpaceXformSteps()
67 SkASSERT(0 == memcmp(&srcM, &dstM, 9*sizeof(float)) && "Hash collision"); in SkColorSpaceXformSteps()
DSkDraw.cpp429 void SkDraw::drawDevMask(const SkMask& srcM, const SkPaint& paint) const { in drawDevMask() argument
430 if (srcM.fBounds.isEmpty()) { in drawDevMask()
434 const SkMask* mask = &srcM; in drawDevMask()
438 as_MFB(paint.getMaskFilter())->filterMask(&dstM, srcM, *fCTM, nullptr)) { in drawDevMask()
DSkDrawBase.cpp510 SkMask srcM(nullptr, *bounds, 0, SkMask::kA8_Format); in compute_mask_bounds() local
512 if (!as_MFB(filter)->filterMask(&dstM, srcM, *filterMatrix, &margin)) { in compute_mask_bounds()
/external/skia/src/gpu/ganesh/
DGrBlurUtils.cpp198 SkMaskBuilder srcM, dstM; in sw_create_filtered_mask() local
199 if (!SkDraw::DrawToMask(devPath, clipBounds, filter, &viewMatrix, &srcM, in sw_create_filtered_mask()
204 SkAutoMaskFreeImage autoSrc(srcM.image()); in sw_create_filtered_mask()
206 SkASSERT(SkMask::kA8_Format == srcM.fFormat); in sw_create_filtered_mask()
208 if (!as_MFB(filter)->filterMask(&dstM, srcM, viewMatrix, nullptr)) { in sw_create_filtered_mask()