Lines Matching refs:dst

571 bool GrConvertPixels(const GrPixmap& dst, const GrCPixmap& src, bool flipY) {
573 if (src.dimensions().isEmpty() || dst.dimensions().isEmpty()) {
576 if (src.colorType() == GrColorType::kUnknown || dst.colorType() == GrColorType::kUnknown) {
579 if (!src.hasPixels() || !dst.hasPixels()) {
582 if (dst.dimensions() != src.dimensions()) {
585 if (dst.colorType() == GrColorType::kRGB_888) {
589 GrPixmap temp = GrPixmap::Allocate(dst.info().makeColorType(GrColorType::kRGB_888x));
594 auto* dRow = reinterpret_cast<char*>(dst.addr());
595 for (int y = 0; y < dst.height(); ++y, tRow += temp.rowBytes(), dRow += dst.rowBytes()) {
596 for (int x = 0; x < dst.width(); ++x) {
617 return GrConvertPixels(dst, temp, flipY);
621 size_t dstBpp = dst.info().bpp();
624 SkASSERT(dst.rowBytes() % dstBpp == 0);
628 dst.alphaType() == kPremul_SkAlphaType;
630 dst.alphaType() == kUnpremul_SkAlphaType;
632 premul || unpremul || !SkColorSpace::Equals(src.colorSpace(), dst.colorSpace());
634 if (src.colorType() == dst.colorType() && !alphaOrCSConversion) {
635 size_t tightRB = dstBpp * dst.width();
638 auto d = SkTAddOffset<char>(dst.addr(), dst.rowBytes()*(dst.height() - 1));
639 for (int y = 0; y < dst.height(); ++y, d -= dst.rowBytes(), s += src.rowBytes()) {
643 SkRectMemcpy(dst.addr(), dst.rowBytes(),
662 auto storeSwizzle = get_dst_swizzle_and_store(dst.colorType(),
672 steps.init(src.colorSpace(), src.alphaType(), dst.colorSpace(), dst.alphaType());
673 clampGamut = dstIsNormalized && dst.alphaType() == kPremul_SkAlphaType;
675 clampGamut = dstIsNormalized && !srcIsNormalized && dst.alphaType() == kPremul_SkAlphaType;
684 dstCtx{ dst.addr(), SkToInt(dst.rowBytes()/dstBpp)};
744 dstCtx.pixels = static_cast<char*>(dstCtx.pixels) + dst.rowBytes();
749 bool GrClearImage(const GrImageInfo& dstInfo, void* dst, size_t dstRB, std::array<float, 4> color) {
755 if (!dst) {
765 char* d = static_cast<char*>(dst) + y * dstRB;
801 SkRasterPipeline_MemoryCtx dstCtx{dst, SkToInt(dstRB/dstInfo.bpp())};