Lines Matching defs:dst
246 dst;
252 if (as_MFB(fMaskFilter)->filterMask(&dst, src, matrix, nullptr)) {
253 if (dst.fBounds.isEmpty() || !SkRectPriv::Is16Bit(dst.fBounds)) {
256 SkASSERT(dst.fImage == nullptr);
257 glyph.fLeft = dst.fBounds.fLeft;
258 glyph.fTop = dst.fBounds.fTop;
259 glyph.fWidth = SkToU16(dst.fBounds.width());
260 glyph.fHeight = SkToU16(dst.fBounds.height());
261 glyph.fMaskFormat = dst.fFormat;
279 uint8_t* SK_RESTRICT dst = (uint8_t*)mask.fImage;
284 dst[x] = lut[dst[x]];
286 dst += rowBytes;
290 static void pack4xHToMask(const SkPixmap& src, const SkMask& dst,
297 const bool toA8 = SkMask::kA8_Format == dst.fFormat;
298 SkASSERT(SkMask::kLCD16_Format == dst.fFormat || toA8);
300 // doVert in this function means swap x and y when writing to dst.
302 SkASSERT(src.width() == (dst.fBounds.height() - 2) * 4);
303 SkASSERT(src.height() == dst.fBounds.width());
305 SkASSERT(src.width() == (dst.fBounds.width() - 2) * 4);
306 SkASSERT(src.height() == dst.fBounds.height());
312 uint8_t* dstImage = dst.fImage;
313 size_t dstRB = dst.fRowBytes;
428 uint8_t* dst = mask.fImage;
438 *dst++ = pack_8_to_1(src);
447 *dst++ = bits;
450 dst += dstPad;
511 SkAutoPixmapStorage dst;
514 if (!dst.tryAlloc(info)) {
520 dst.reset(info, mask.fImage, mask.fRowBytes);
522 sk_bzero(dst.writable_addr(), dst.computeByteSize());
526 draw.fDst = dst;
533 packA8ToA1(mask, dst.addr8(0, 0), dst.rowBytes());
537 pack4xHToMask(dst, mask, maskPreBlend, doBGR, doVert);
543 pack4xHToMask(dst, mask, maskPreBlend, doBGR, doVert);
624 // Find the intersection of src and dst while updating the fImages.
668 uint8_t* dst = dstMask.fImage;
681 memcpy(dst, src, width);
683 dst += dstRB;
784 void SkScalerContextRec::getMatrixFrom2x2(SkMatrix* dst) const {
785 dst->setAll(fPost2x2[0][0], fPost2x2[0][1], 0,