Lines Matching refs:dstInfo
465 bool GrConvertPixels(const GrImageInfo& dstInfo, void* dst, size_t dstRB, in GrConvertPixels() argument
473 if (!srcInfo.isValid() || !dstInfo.isValid()) { in GrConvertPixels()
479 if (dstInfo.dimensions() != srcInfo.dimensions()) { in GrConvertPixels()
482 if (dstRB < dstInfo.minRowBytes() || srcRB < srcInfo.minRowBytes()) { in GrConvertPixels()
485 if (dstInfo.colorType() == GrColorType::kRGB_888) { in GrConvertPixels()
488 auto tempDstInfo = dstInfo.makeColorType(GrColorType::kRGB_888x); in GrConvertPixels()
496 for (int y = 0; y < dstInfo.height(); ++y, tRow += tempRB, dRow += dstRB) { in GrConvertPixels()
497 for (int x = 0; x < dstInfo.width(); ++x) { in GrConvertPixels()
507 size_t dstBpp = dstInfo.bpp(); in GrConvertPixels()
514 dstInfo.alphaType() == kPremul_SkAlphaType; in GrConvertPixels()
516 dstInfo.alphaType() == kUnpremul_SkAlphaType; in GrConvertPixels()
518 premul || unpremul || !SkColorSpace::Equals(srcInfo.colorSpace(), dstInfo.colorSpace()); in GrConvertPixels()
520 if (srcInfo.colorType() == dstInfo.colorType() && !alphaOrCSConversion) { in GrConvertPixels()
521 size_t tightRB = dstBpp * dstInfo.width(); in GrConvertPixels()
523 dst = static_cast<char*>(dst) + dstRB * (dstInfo.height() - 1); in GrConvertPixels()
524 for (int y = 0; y < dstInfo.height(); ++y) { in GrConvertPixels()
545 auto storeSwizzle = get_dst_swizzle_and_store(dstInfo.colorType(), &store, &doLumToAlpha, in GrConvertPixels()
553 dstInfo.colorSpace(), dstInfo.alphaType()); in GrConvertPixels()
554 clampGamut = dstIsNormalized && dstInfo.alphaType() == kPremul_SkAlphaType; in GrConvertPixels()
557 dstIsNormalized && !srcIsNormalized && dstInfo.alphaType() == kPremul_SkAlphaType; in GrConvertPixels()
624 bool GrClearImage(const GrImageInfo& dstInfo, void* dst, size_t dstRB, SkColor4f color) { in GrClearImage() argument
627 if (!dstInfo.isValid()) { in GrClearImage()
633 if (dstRB < dstInfo.minRowBytes()) { in GrClearImage()
636 if (dstInfo.colorType() == GrColorType::kRGB_888) { in GrClearImage()
639 for (int y = 0; y < dstInfo.height(); ++y) { in GrClearImage()
641 for (int x = 0; x < dstInfo.width(); ++x, d += 3) { in GrClearImage()
652 GrSwizzle storeSwizzle = get_dst_swizzle_and_store(dstInfo.colorType(), &store, &doLumToAlpha, in GrClearImage()
671 SkRasterPipeline_MemoryCtx dstCtx{dst, SkToInt(dstRB/dstInfo.bpp())}; in GrClearImage()
673 pipeline.run(0, 0, dstInfo.width(), dstInfo.height()); in GrClearImage()