Lines Matching defs:set
856 void Device::drawEdgeAAImageSet(const SkCanvas::ImageSetEntry set[], int count,
866 SkASSERT(!set[i].fHasClip || dstClips);
867 SkASSERT(set[i].fMatrixIndex < 0 || preViewMatrices);
870 if (set[i].fAlpha != 1.f) {
872 entryPaint.writable()->setAlphaf(paintAlpha * set[i].fAlpha);
876 set[i].fImage.get(), &set[i].fSrcRect, &set[i].fDstRect,
877 set[i].fHasClip ? dstClips + dstClipIndex : nullptr, GrAA::kYes,
878 SkToGrQuadAAFlags(set[i].fAAFlags),
879 set[i].fMatrixIndex < 0 ? nullptr : preViewMatrices + set[i].fMatrixIndex,
881 dstClipIndex += 4 * set[i].fHasClip;
898 auto textureXform = GrColorSpaceXform::Make(set[base].fImage->imageInfo().colorInfo(),
918 SkASSERT(!set[i].fHasClip || dstClips);
919 SkASSERT(set[i].fMatrixIndex < 0 || preViewMatrices);
923 const SkPoint* clip = set[i].fHasClip ? dstClips + dstClipIndex : nullptr;
924 dstClipIndex += 4 * set[i].fHasClip;
928 if (!set[i].fSrcRect.isSorted()) {
934 const SkImage_Base* image = as_IB(set[i].fImage.get());
950 if (set[i].fAlpha != 1.f) {
952 entryPaint.writable()->setAlphaf(paintAlpha * set[i].fAlpha);
955 image, &set[i].fSrcRect, &set[i].fDstRect, clip, GrAA::kYes,
956 SkToGrQuadAAFlags(set[i].fAAFlags),
957 set[i].fMatrixIndex < 0 ? nullptr : preViewMatrices + set[i].fMatrixIndex,
964 textures[i].fSrcRect = set[i].fSrcRect;
965 textures[i].fDstRect = set[i].fDstRect;
968 set[i].fMatrixIndex < 0 ? nullptr : preViewMatrices + set[i].fMatrixIndex;
969 textures[i].fColor = texture_color(paint.getColor4f(), set[i].fAlpha,
972 textures[i].fAAFlags = SkToGrQuadAAFlags(set[i].fAAFlags);
979 set[i].fImage->alphaType() != set[base].fImage->alphaType() ||
980 !SkColorSpace::Equals(set[i].fImage->colorSpace(), set[base].fImage->colorSpace()))) {
984 // set being accumulated so increment n, and increment p if proxies are different.