/external/skqp/src/gpu/ |
D | GrBlurUtils.cpp | 92 SkMask srcM, dstM; in sw_draw_with_mask_filter() local 100 if (!as_MFB(filter)->filterMask(&dstM, srcM, viewMatrix, nullptr)) { in sw_draw_with_mask_filter() 108 drawRect = dstM.fBounds; in sw_draw_with_mask_filter() 118 SkMask srcM, dstM; in sw_draw_with_mask_filter() local 127 if (!as_MFB(filter)->filterMask(&dstM, srcM, viewMatrix, nullptr)) { in sw_draw_with_mask_filter() 131 SkAutoMaskFreeImage autoDst(dstM.fImage); in sw_draw_with_mask_filter() 133 if (clip_bounds_quick_reject(clipBounds, dstM.fBounds)) { in sw_draw_with_mask_filter() 140 if (!bm.installPixels(SkImageInfo::MakeA8(dstM.fBounds.width(), dstM.fBounds.height()), in sw_draw_with_mask_filter() 141 autoDst.release(), dstM.fRowBytes, mask_release_proc, nullptr)) { in sw_draw_with_mask_filter() 161 drawRect = dstM.fBounds; in sw_draw_with_mask_filter()
|
/external/skqp/src/core/ |
D | SkBitmap.cpp | 512 SkMask srcM, dstM; in extractAlpha() local 526 if (!as_MFB(filter)->filterMask(&dstM, srcM, identity, nullptr)) { in extractAlpha() 529 dstM.fRowBytes = SkAlign4(dstM.fBounds.width()); in extractAlpha() 550 if (!as_MFB(filter)->filterMask(&dstM, srcM, identity, nullptr)) { in extractAlpha() 553 SkAutoMaskFreeImage dstCleanup(dstM.fImage); in extractAlpha() 555 tmpBitmap.setInfo(SkImageInfo::MakeA8(dstM.fBounds.width(), dstM.fBounds.height()), in extractAlpha() 556 dstM.fRowBytes); in extractAlpha() 563 memcpy(tmpBitmap.getPixels(), dstM.fImage, dstM.computeImageSize()); in extractAlpha() 565 offset->set(dstM.fBounds.fLeft, dstM.fBounds.fTop); in extractAlpha()
|
D | SkMaskFilter.cpp | 262 SkMask srcM, dstM; in filterPath() local 271 if (!this->filterMask(&dstM, srcM, matrix, nullptr)) { in filterPath() 274 SkAutoMaskFreeImage autoDst(dstM.fImage); in filterPath() 280 SkRegion::Cliperator clipper(wrapper.getRgn(), dstM.fBounds); in filterPath() 285 blitter->blitMask(dstM, cr); in filterPath() 352 SkMask srcM, dstM; in computeFastBounds() local 359 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { in computeFastBounds() 360 dst->set(dstM.fBounds); in computeFastBounds() 565 SkMask srcM, dstM; in filterMask() local 570 if (!as_MFB(fDst)->filterMask(&dstM, src, ctm, &dstP)) { in filterMask() [all …]
|
D | SkColorSpaceXformSteps.cpp | 56 skcms_Matrix3x3 srcM, dstM; in SkColorSpaceXformSteps() local 58 dst->toXYZD50(&dstM); in SkColorSpaceXformSteps() 59 SkASSERT(0 == memcmp(&srcM, &dstM, 9*sizeof(float)) && "Hash collision"); in SkColorSpaceXformSteps()
|
D | SkBlurMF.cpp | 83 bool filterRectMask(SkMask* dstM, const SkRect& r, const SkMatrix& matrix, 85 bool filterRRectMask(SkMask* dstM, const SkRRect& r, const SkMatrix& matrix, 464 SkMask srcM, dstM; in filterRRectToNine() local 473 filterResult = this->filterRRectMask(&dstM, rrect, matrix, &margin, in filterRRectToNine() 478 filterResult = this->filterMask(&dstM, srcM, matrix, &margin); in filterRRectToNine() 550 patch->fOuterRect = dstM.fBounds; in filterRRectToNine() 583 SkMask srcM, dstM; in filterRectsToNine() local 592 filterResult = this->filterRectMask(&dstM, rects[0], matrix, &margin, in filterRectsToNine() 595 filterResult = this->filterMask(&dstM, srcM, matrix, &margin); in filterRectsToNine() 620 int smallW = dstM.fBounds.width() - srcM.fBounds.width() + 2; in filterRectsToNine() [all …]
|
D | SkScalerContext.cpp | 507 SkMask srcM, dstM; in getImage() local 517 if (as_MFB(fMaskFilter)->filterMask(&dstM, srcM, matrix, nullptr)) { in getImage() 518 int width = SkMin32(origGlyph.fWidth, dstM.fBounds.width()); in getImage() 519 int height = SkMin32(origGlyph.fHeight, dstM.fBounds.height()); in getImage() 521 int srcRB = dstM.fRowBytes; in getImage() 523 const uint8_t* src = (const uint8_t*)dstM.fImage; in getImage() 526 if (SkMask::k3D_Format == dstM.fFormat) { in getImage() 539 SkMask::FreeImage(dstM.fImage); in getImage() 541 if (SkMask::kA8_Format == dstM.fFormat && fPreBlendForFilter.isApplicable()) { in getImage()
|
D | SkDraw.cpp | 708 SkMask dstM; in drawDevMask() local 710 as_MFB(paint.getMaskFilter())->filterMask(&dstM, srcM, *fMatrix, nullptr)) { in drawDevMask() 711 mask = &dstM; in drawDevMask() 713 SkAutoMaskFreeImage ami(dstM.fImage); in drawDevMask() 1214 SkMask srcM, dstM; in ComputeMaskBounds() local 1218 if (!as_MFB(filter)->filterMask(&dstM, srcM, *filterMatrix, &margin)) { in ComputeMaskBounds()
|
/external/skia/src/core/ |
D | SkBitmap.cpp | 522 SkMask srcM, dstM; in extractAlpha() local 536 if (!as_MFB(filter)->filterMask(&dstM, srcM, identity, nullptr)) { in extractAlpha() 539 dstM.fRowBytes = SkAlign4(dstM.fBounds.width()); in extractAlpha() 560 if (!as_MFB(filter)->filterMask(&dstM, srcM, identity, nullptr)) { in extractAlpha() 563 SkAutoMaskFreeImage dstCleanup(dstM.fImage); in extractAlpha() 565 tmpBitmap.setInfo(SkImageInfo::MakeA8(dstM.fBounds.width(), dstM.fBounds.height()), in extractAlpha() 566 dstM.fRowBytes); in extractAlpha() 573 memcpy(tmpBitmap.getPixels(), dstM.fImage, dstM.computeImageSize()); in extractAlpha() 575 offset->set(dstM.fBounds.fLeft, dstM.fBounds.fTop); in extractAlpha()
|
D | SkMaskFilter.cpp | 260 SkMask srcM, dstM; in filterPath() local 274 if (!this->filterMask(&dstM, srcM, matrix, nullptr)) { in filterPath() 277 SkAutoMaskFreeImage autoDst(dstM.fImage); in filterPath() 283 SkRegion::Cliperator clipper(wrapper.getRgn(), dstM.fBounds); in filterPath() 288 blitter->blitMask(dstM, cr); in filterPath() 357 SkMask srcM, dstM; in computeFastBounds() local 364 if (this->filterMask(&dstM, srcM, SkMatrix::I(), &margin)) { in computeFastBounds() 365 dst->set(dstM.fBounds); in computeFastBounds()
|
D | SkBlurMF.cpp | 86 bool filterRectMask(SkMask* dstM, const SkRect& r, const SkMatrix& matrix, 88 bool filterRRectMask(SkMask* dstM, const SkRRect& r, const SkMatrix& matrix, 324 SkMask srcM, dstM; in filterRRectToNine() local 333 filterResult = this->filterRRectMask(&dstM, rrect, matrix, &margin, in filterRRectToNine() 338 filterResult = this->filterMask(&dstM, srcM, matrix, &margin); in filterRRectToNine() 410 patch->fOuterRect = dstM.fBounds; in filterRRectToNine() 443 SkMask srcM, dstM; in filterRectsToNine() local 452 filterResult = this->filterRectMask(&dstM, rects[0], matrix, &margin, in filterRectsToNine() 455 filterResult = this->filterMask(&dstM, srcM, matrix, &margin); in filterRectsToNine() 480 int smallW = dstM.fBounds.width() - srcM.fBounds.width() + 2; in filterRectsToNine() [all …]
|
D | SkColorSpaceXformSteps.cpp | 57 skcms_Matrix3x3 srcM, dstM; in SkColorSpaceXformSteps() local 59 dst->toXYZD50(&dstM); in SkColorSpaceXformSteps() 60 SkASSERT(0 == memcmp(&srcM, &dstM, 9*sizeof(float)) && "Hash collision"); in SkColorSpaceXformSteps()
|
D | SkDraw.cpp | 707 SkMask dstM; in drawDevMask() local 710 ->filterMask(&dstM, srcM, fMatrixProvider->localToDevice(), nullptr)) { in drawDevMask() 711 mask = &dstM; in drawDevMask() 713 SkAutoMaskFreeImage ami(dstM.fImage); in drawDevMask() 1228 SkMask srcM, dstM; in ComputeMaskBounds() local 1232 if (!as_MFB(filter)->filterMask(&dstM, srcM, *filterMatrix, &margin)) { in ComputeMaskBounds()
|
/external/skia/src/gpu/ |
D | GrBlurUtils.cpp | 132 SkMask srcM, dstM; in sw_create_filtered_mask() local 141 if (!as_MFB(filter)->filterMask(&dstM, srcM, viewMatrix, nullptr)) { in sw_create_filtered_mask() 145 SkAutoMaskFreeImage autoDst(dstM.fImage); in sw_create_filtered_mask() 147 if (clip_bounds_quick_reject(clipBounds, dstM.fBounds)) { in sw_create_filtered_mask() 154 if (!bm.installPixels(SkImageInfo::MakeA8(dstM.fBounds.width(), dstM.fBounds.height()), in sw_create_filtered_mask() 155 autoDst.release(), dstM.fRowBytes, mask_release_proc, nullptr)) { in sw_create_filtered_mask() 171 *drawRect = dstM.fBounds; in sw_create_filtered_mask()
|