Lines Matching refs:set

180 // Count the number of proxy runs in the entry set. This usually is already computed by
181 // SkGpuDevice, but when the BatchLengthLimiter chops the set up it must determine a new proxy count
183 int proxy_run_count(const GrTextureSetEntry set[], int count) {
187 if (set[i].fProxyView.proxy() != lastProxy) {
189 lastProxy = set[i].fProxyView.proxy();
245 GrTextureSetEntry set[],
259 set, cnt, proxyRunCnt, filter, mm, saturate, aaType, constraint,
468 // Normalize src coordinates and the subset (if set)
483 TextureOpImpl(GrTextureSetEntry set[],
497 , fMetadata(set[0].fProxyView.swizzle(),
516 // 'q' is the index in 'set' and fQuadBuffer; 'p' is the index in fViewCountPairs and only
517 // increases when set[q]'s proxy changes.
521 (set[0].fProxyView.proxy()->asTextureProxy()->mipmapped() ==
526 fViewCountPairs[0].fProxy = set[0].fProxyView.detachProxy();
529 } else if (set[q].fProxyView.proxy() != curProxy) {
532 new(&fViewCountPairs[++p])ViewCountPair({set[q].fProxyView.detachProxy(), 0});
537 SkASSERT(fMetadata.fSwizzle == set[q].fProxyView.swizzle());
541 if (set[q].fPreViewMatrix) {
542 ctm.preConcat(*set[q].fPreViewMatrix);
548 if (set[q].fDstClipQuad) {
549 quad.fDevice = GrQuad::MakeFromSkQuad(set[q].fDstClipQuad, ctm);
552 GrMapRectPoints(set[q].fDstRect, set[q].fSrcRect, set[q].fDstClipQuad, srcPts, 4);
555 quad.fDevice = GrQuad::MakeFromRect(set[q].fDstRect, ctm);
556 quad.fLocal = GrQuad(set[q].fSrcRect);
585 GrQuadUtils::ResolveAAType(aaType, set[q].fAAFlags, quad.fDevice,
600 // Check (briefly) if the subset rect is actually needed for this set entry.
601 SkRect* subsetRect = &set[q].fSrcRect;
612 curProxy, set[q].fProxyView.origin());
621 fViewCountPairs[p].fQuadCnt += this->appendQuad(&quad, set[q].fColor, subset);
1216 void createOp(GrTextureSetEntry set[], int clumpSize, GrAAType aaType) {
1218 int clumpProxyCount = proxy_run_count(&set[fNumClumped], clumpSize);
1220 &set[fNumClumped],
1258 GrTextureSetEntry set[],
1272 SkASSERT(proxy_run_count(set, cnt) == proxyRunCnt);
1283 if (set[i].fPreViewMatrix) {
1284 ctm.preConcat(*set[i].fPreViewMatrix);
1288 quad.fEdgeFlags = set[i].fAAFlags;
1289 if (set[i].fDstClipQuad) {
1290 quad.fDevice = GrQuad::MakeFromSkQuad(set[i].fDstClipQuad, ctm);
1293 GrMapRectPoints(set[i].fDstRect, set[i].fSrcRect, set[i].fDstClipQuad, srcPts, 4);
1296 quad.fDevice = GrQuad::MakeFromRect(set[i].fDstRect, ctm);
1297 quad.fLocal = GrQuad(set[i].fSrcRect);
1301 ? &set[i].fSrcRect : nullptr;
1303 auto op = Make(context, set[i].fProxyView, set[i].fSrcAlphaType, textureColorSpaceXform,
1304 filter, mm, set[i].fColor, saturate, blendMode, aaType, &quad, subset);
1314 auto op = TextureOpImpl::Make(context, set, cnt, proxyRunCnt, filter, mm, saturate, aaType,
1329 state.createOp(set, clumpSize, aaType);
1344 if (set[absIndex].fAAFlags != GrQuadAAFlags::kNone ||
1349 // all the accumulated quads would overflow, or we have a set of AA quads
1353 set,
1366 state.createOp(set, GrResourceProvider::MaxNumNonAAQuads(),
1377 state.createOp(set, state.numLeft(), runningAA); // maybe downgrading AA here