/third_party/skia/src/core/ |
D | SkBitmap.cpp | 522 SkMask srcM, dstM; in extractAlpha() local 527 srcM.fBounds.setWH(this->width(), this->height()); in extractAlpha() 528 srcM.fRowBytes = SkAlign4(this->width()); in extractAlpha() 529 srcM.fFormat = SkMask::kA8_Format; in extractAlpha() 536 if (!as_MFB(filter)->filterMask(&dstM, srcM, identity, nullptr)) { in extractAlpha() 542 tmpBitmap.setInfo(SkImageInfo::MakeA8(this->width(), this->height()), srcM.fRowBytes); in extractAlpha() 549 GetBitmapAlpha(*this, tmpBitmap.getAddr8(0, 0), srcM.fRowBytes); in extractAlpha() 556 srcM.fImage = SkMask::AllocImage(srcM.computeImageSize()); in extractAlpha() 557 SkAutoMaskFreeImage srcCleanup(srcM.fImage); in extractAlpha() 559 GetBitmapAlpha(*this, srcM.fImage, srcM.fRowBytes); in extractAlpha() [all …]
|
D | SkMaskFilter.cpp | 261 SkMask srcM, dstM; in filterPath() local 268 if (!SkDraw::DrawToMask(devPath, &clip.getBounds(), this, &matrix, &srcM, in filterPath() 273 SkAutoMaskFreeImage autoSrc(srcM.fImage); in filterPath() 275 if (!this->filterMask(&dstM, srcM, matrix, nullptr)) { in filterPath() 358 SkMask srcM, dstM; in computeFastBounds() local 360 srcM.fBounds = src.roundOut(); in computeFastBounds() 361 srcM.fRowBytes = 0; in computeFastBounds() 362 srcM.fFormat = SkMask::kA8_Format; in computeFastBounds() 365 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { in computeFastBounds() 368 dst->set(srcM.fBounds); in computeFastBounds()
|
D | SkBlurMF.cpp | 327 SkMask srcM, dstM; in filterRRectToNine() local 328 srcM.fBounds = rrect.rect().roundOut(); in filterRRectToNine() 329 srcM.fFormat = SkMask::kA8_Format; in filterRRectToNine() 330 srcM.fRowBytes = 0; in filterRRectToNine() 341 filterResult = this->filterMask(&dstM, srcM, matrix, &margin); in filterRRectToNine() 399 if (!draw_rrect_into_mask(smallRR, &srcM)) { in filterRRectToNine() 403 SkAutoMaskFreeImage amf(srcM.fImage); in filterRRectToNine() 405 if (!this->filterMask(&patch->fMask, srcM, matrix, &margin)) { in filterRRectToNine() 446 SkMask srcM, dstM; in filterRectsToNine() local 447 srcM.fBounds = rects[0].roundOut(); in filterRectsToNine() [all …]
|
D | SkColorSpaceXformSteps.cpp | 57 skcms_Matrix3x3 srcM, dstM; in SkColorSpaceXformSteps() local 58 src->toXYZD50(&srcM); in SkColorSpaceXformSteps() 60 SkASSERT(0 == memcmp(&srcM, &dstM, 9*sizeof(float)) && "Hash collision"); in SkColorSpaceXformSteps()
|
D | SkDraw.cpp | 703 void SkDraw::drawDevMask(const SkMask& srcM, const SkPaint& paint) const { in drawDevMask() argument 704 if (srcM.fBounds.isEmpty()) { in drawDevMask() 708 const SkMask* mask = &srcM; in drawDevMask() 713 ->filterMask(&dstM, srcM, fMatrixProvider->localToDevice(), nullptr)) { in drawDevMask() 1217 SkMask srcM, dstM; in ComputeMaskBounds() local 1219 srcM.fBounds = *bounds; in ComputeMaskBounds() 1220 srcM.fFormat = SkMask::kA8_Format; in ComputeMaskBounds() 1221 if (!as_MFB(filter)->filterMask(&dstM, srcM, *filterMatrix, &margin)) { in ComputeMaskBounds()
|
/third_party/flutter/skia/src/core/ |
D | SkBitmap.cpp | 535 SkMask srcM, dstM; in extractAlpha() local 540 srcM.fBounds.set(0, 0, this->width(), this->height()); in extractAlpha() 541 srcM.fRowBytes = SkAlign4(this->width()); in extractAlpha() 542 srcM.fFormat = SkMask::kA8_Format; in extractAlpha() 549 if (!as_MFB(filter)->filterMask(&dstM, srcM, identity, nullptr)) { in extractAlpha() 555 tmpBitmap.setInfo(SkImageInfo::MakeA8(this->width(), this->height()), srcM.fRowBytes); in extractAlpha() 562 GetBitmapAlpha(*this, tmpBitmap.getAddr8(0, 0), srcM.fRowBytes); in extractAlpha() 569 srcM.fImage = SkMask::AllocImage(srcM.computeImageSize()); in extractAlpha() 570 SkAutoMaskFreeImage srcCleanup(srcM.fImage); in extractAlpha() 572 GetBitmapAlpha(*this, srcM.fImage, srcM.fRowBytes); in extractAlpha() [all …]
|
D | SkBlurMF.cpp | 464 SkMask srcM, dstM; in filterRRectToNine() local 465 srcM.fBounds = rrect.rect().roundOut(); in filterRRectToNine() 466 srcM.fFormat = SkMask::kA8_Format; in filterRRectToNine() 467 srcM.fRowBytes = 0; in filterRRectToNine() 478 filterResult = this->filterMask(&dstM, srcM, matrix, &margin); in filterRRectToNine() 536 if (!draw_rrect_into_mask(smallRR, &srcM)) { in filterRRectToNine() 540 SkAutoMaskFreeImage amf(srcM.fImage); in filterRRectToNine() 542 if (!this->filterMask(&patch->fMask, srcM, matrix, &margin)) { in filterRRectToNine() 583 SkMask srcM, dstM; in filterRectsToNine() local 584 srcM.fBounds = rects[0].roundOut(); in filterRectsToNine() [all …]
|
D | SkMaskFilter.cpp | 262 SkMask srcM, dstM; in filterPath() local 264 if (!SkDraw::DrawToMask(devPath, &clip.getBounds(), this, &matrix, &srcM, in filterPath() 269 SkAutoMaskFreeImage autoSrc(srcM.fImage); in filterPath() 271 if (!this->filterMask(&dstM, srcM, matrix, nullptr)) { in filterPath() 352 SkMask srcM, dstM; in computeFastBounds() local 354 srcM.fBounds = src.roundOut(); in computeFastBounds() 355 srcM.fRowBytes = 0; in computeFastBounds() 356 srcM.fFormat = SkMask::kA8_Format; in computeFastBounds() 359 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { in computeFastBounds() 362 dst->set(srcM.fBounds); in computeFastBounds() [all …]
|
D | SkColorSpaceXformSteps.cpp | 64 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()
|
D | SkDraw.cpp | 701 void SkDraw::drawDevMask(const SkMask& srcM, const SkPaint& paint) const { in drawDevMask() argument 702 if (srcM.fBounds.isEmpty()) { in drawDevMask() 706 const SkMask* mask = &srcM; in drawDevMask() 710 as_MFB(paint.getMaskFilter())->filterMask(&dstM, srcM, *fMatrix, nullptr)) { in drawDevMask() 1219 SkMask srcM, dstM; in ComputeMaskBounds() local 1221 srcM.fBounds = *bounds; in ComputeMaskBounds() 1222 srcM.fFormat = SkMask::kA8_Format; in ComputeMaskBounds() 1223 if (!as_MFB(filter)->filterMask(&dstM, srcM, *filterMatrix, &margin)) { in ComputeMaskBounds()
|
D | SkScalerContext.cpp | 584 SkMask srcM = glyph->mask(), in getImage() local 590 if (as_MFB(fMaskFilter)->filterMask(&dstM, srcM, matrix, nullptr)) { in getImage()
|
/third_party/flutter/skia/src/gpu/ |
D | GrBlurUtils.cpp | 93 SkMask srcM, dstM; in sw_draw_with_mask_filter() local 95 &srcM.fBounds)) { in sw_draw_with_mask_filter() 99 srcM.fFormat = SkMask::kA8_Format; in sw_draw_with_mask_filter() 101 if (!as_MFB(filter)->filterMask(&dstM, srcM, viewMatrix, nullptr)) { in sw_draw_with_mask_filter() 119 SkMask srcM, dstM; in sw_draw_with_mask_filter() local 120 if (!SkDraw::DrawToMask(devPath, &clipBounds, filter, &viewMatrix, &srcM, in sw_draw_with_mask_filter() 124 SkAutoMaskFreeImage autoSrc(srcM.fImage); in sw_draw_with_mask_filter() 126 SkASSERT(SkMask::kA8_Format == srcM.fFormat); in sw_draw_with_mask_filter() 128 if (!as_MFB(filter)->filterMask(&dstM, srcM, viewMatrix, nullptr)) { in sw_draw_with_mask_filter()
|
/third_party/skia/src/gpu/ |
D | GrBlurUtils.cpp | 135 SkMask srcM, dstM; in sw_create_filtered_mask() local 136 if (!SkDraw::DrawToMask(devPath, &clipBounds, filter, &viewMatrix, &srcM, in sw_create_filtered_mask() 140 SkAutoMaskFreeImage autoSrc(srcM.fImage); in sw_create_filtered_mask() 142 SkASSERT(SkMask::kA8_Format == srcM.fFormat); in sw_create_filtered_mask() 144 if (!as_MFB(filter)->filterMask(&dstM, srcM, viewMatrix, nullptr)) { in sw_create_filtered_mask()
|