• Home
  • Raw
  • Download

Lines Matching refs:dstInfo

491 bool GrConvertPixels(const GrPixelInfo& dstInfo,       void* dst, size_t dstRB,  in GrConvertPixels()  argument
495 if (!srcInfo.isValid() || !dstInfo.isValid()) { in GrConvertPixels()
501 if (dstInfo.width() != srcInfo.width() || srcInfo.height() != dstInfo.height()) { in GrConvertPixels()
504 if (GrColorTypeComponentFlags(dstInfo.colorType()) & kGray_SkColorTypeComponentFlag) { in GrConvertPixels()
508 if (dstRB < dstInfo.minRowBytes() || srcRB < srcInfo.minRowBytes()) { in GrConvertPixels()
513 size_t dstBpp = dstInfo.bpp(); in GrConvertPixels()
520 dstInfo.alphaType() == kPremul_SkAlphaType; in GrConvertPixels()
522 dstInfo.alphaType() == kUnpremul_SkAlphaType; in GrConvertPixels()
524 premul || unpremul || !SkColorSpace::Equals(srcInfo.colorSpace(), dstInfo.colorSpace()); in GrConvertPixels()
526 if (srcInfo.colorType() == dstInfo.colorType() && !alphaOrCSConversion) { in GrConvertPixels()
527 size_t tightRB = dstBpp * dstInfo.width(); in GrConvertPixels()
529 dst = static_cast<char*>(dst) + dstRB * (dstInfo.height() - 1); in GrConvertPixels()
530 for (int y = 0; y < dstInfo.height(); ++y) { in GrConvertPixels()
550 auto storeSwizzle = get_dst_swizzle_and_store(dstInfo.colorType(), &store, &dstIsNormalized, in GrConvertPixels()
558 dstInfo.colorSpace(), dstInfo.alphaType()); in GrConvertPixels()
559 clampGamut = dstIsNormalized && dstInfo.alphaType() == kPremul_SkAlphaType; in GrConvertPixels()
562 dstIsNormalized && !srcIsNormalized && dstInfo.alphaType() == kPremul_SkAlphaType; in GrConvertPixels()