/external/skia/src/core/ |
D | SkBlurMF.cpp | 324 SkMask srcM, dstM; in filterRRectToNine() local 325 srcM.fBounds = rrect.rect().roundOut(); in filterRRectToNine() 326 srcM.fFormat = SkMask::kA8_Format; in filterRRectToNine() 327 srcM.fRowBytes = 0; in filterRRectToNine() 338 filterResult = this->filterMask(&dstM, srcM, matrix, &margin); in filterRRectToNine() 396 if (!draw_rrect_into_mask(smallRR, &srcM)) { in filterRRectToNine() 400 SkAutoMaskFreeImage amf(srcM.fImage); in filterRRectToNine() 402 if (!this->filterMask(&patch->fMask, srcM, matrix, &margin)) { in filterRRectToNine() 443 SkMask srcM, dstM; in filterRectsToNine() local 444 srcM.fBounds = rects[0].roundOut(); in filterRectsToNine() [all …]
|
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 | 260 SkMask srcM, dstM; in filterPath() local 267 if (!SkDraw::DrawToMask(devPath, &clip.getBounds(), this, &matrix, &srcM, in filterPath() 272 SkAutoMaskFreeImage autoSrc(srcM.fImage); in filterPath() 274 if (!this->filterMask(&dstM, srcM, matrix, nullptr)) { in filterPath() 357 SkMask srcM, dstM; in computeFastBounds() local 359 srcM.fBounds = src.roundOut(); in computeFastBounds() 360 srcM.fRowBytes = 0; in computeFastBounds() 361 srcM.fFormat = SkMask::kA8_Format; in computeFastBounds() 364 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { in computeFastBounds() 367 dst->set(srcM.fBounds); in computeFastBounds()
|
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 | 700 void SkDraw::drawDevMask(const SkMask& srcM, const SkPaint& paint) const { in drawDevMask() argument 701 if (srcM.fBounds.isEmpty()) { in drawDevMask() 705 const SkMask* mask = &srcM; in drawDevMask() 710 ->filterMask(&dstM, srcM, fMatrixProvider->localToDevice(), nullptr)) { in drawDevMask() 1228 SkMask srcM, dstM; in ComputeMaskBounds() local 1230 srcM.fBounds = *bounds; in ComputeMaskBounds() 1231 srcM.fFormat = SkMask::kA8_Format; in ComputeMaskBounds() 1232 if (!as_MFB(filter)->filterMask(&dstM, srcM, *filterMatrix, &margin)) { in ComputeMaskBounds()
|
/external/skqp/src/core/ |
D | SkBitmap.cpp | 512 SkMask srcM, dstM; in extractAlpha() local 517 srcM.fBounds.set(0, 0, this->width(), this->height()); in extractAlpha() 518 srcM.fRowBytes = SkAlign4(this->width()); in extractAlpha() 519 srcM.fFormat = SkMask::kA8_Format; in extractAlpha() 526 if (!as_MFB(filter)->filterMask(&dstM, srcM, identity, nullptr)) { in extractAlpha() 532 tmpBitmap.setInfo(SkImageInfo::MakeA8(this->width(), this->height()), srcM.fRowBytes); in extractAlpha() 539 GetBitmapAlpha(*this, tmpBitmap.getAddr8(0, 0), srcM.fRowBytes); in extractAlpha() 546 srcM.fImage = SkMask::AllocImage(srcM.computeImageSize()); in extractAlpha() 547 SkAutoMaskFreeImage srcCleanup(srcM.fImage); in extractAlpha() 549 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 | 56 skcms_Matrix3x3 srcM, dstM; in SkColorSpaceXformSteps() local 57 src->toXYZD50(&srcM); in SkColorSpaceXformSteps() 59 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() 1214 SkMask srcM, dstM; in ComputeMaskBounds() local 1216 srcM.fBounds = *bounds; in ComputeMaskBounds() 1217 srcM.fFormat = SkMask::kA8_Format; in ComputeMaskBounds() 1218 if (!as_MFB(filter)->filterMask(&dstM, srcM, *filterMatrix, &margin)) { in ComputeMaskBounds()
|
D | SkScalerContext.cpp | 507 SkMask srcM, dstM; in getImage() local 513 glyph->toMask(&srcM); in getImage() 517 if (as_MFB(fMaskFilter)->filterMask(&dstM, srcM, matrix, nullptr)) { in getImage() 542 applyLUTToA8Mask(srcM, fPreBlendForFilter.fG); in getImage()
|
/external/skqp/src/gpu/ |
D | GrBlurUtils.cpp | 92 SkMask srcM, dstM; in sw_draw_with_mask_filter() local 94 &srcM.fBounds)) { in sw_draw_with_mask_filter() 98 srcM.fFormat = SkMask::kA8_Format; in sw_draw_with_mask_filter() 100 if (!as_MFB(filter)->filterMask(&dstM, srcM, viewMatrix, nullptr)) { in sw_draw_with_mask_filter() 118 SkMask srcM, dstM; in sw_draw_with_mask_filter() local 119 if (!SkDraw::DrawToMask(devPath, &clipBounds, filter, &viewMatrix, &srcM, in sw_draw_with_mask_filter() 123 SkAutoMaskFreeImage autoSrc(srcM.fImage); in sw_draw_with_mask_filter() 125 SkASSERT(SkMask::kA8_Format == srcM.fFormat); in sw_draw_with_mask_filter() 127 if (!as_MFB(filter)->filterMask(&dstM, srcM, viewMatrix, nullptr)) { in sw_draw_with_mask_filter()
|
/external/skia/src/gpu/ |
D | GrBlurUtils.cpp | 132 SkMask srcM, dstM; in sw_create_filtered_mask() local 133 if (!SkDraw::DrawToMask(devPath, &clipBounds, filter, &viewMatrix, &srcM, in sw_create_filtered_mask() 137 SkAutoMaskFreeImage autoSrc(srcM.fImage); in sw_create_filtered_mask() 139 SkASSERT(SkMask::kA8_Format == srcM.fFormat); in sw_create_filtered_mask() 141 if (!as_MFB(filter)->filterMask(&dstM, srcM, viewMatrix, nullptr)) { in sw_create_filtered_mask()
|