Lines Matching refs:subset

40                                     const SkRect& subset,
70 auto resolve = [&](int size, Wrap wrap, Span subset, Span domain, float linearFilterInset) {
83 if (canDoModeInHW && size > 0 && subset.fA <= 0 && subset.fB >= size) {
90 r.fShaderSubset = subset;
93 Span isubset{sk_float_floor(subset.fA), sk_float_ceil(subset.fB)};
102 r.fShaderClamp = subset.makeInset(linearFilterInset);
108 // The domain of coords that will be used won't access texels outside of the subset.
123 Span subsetX{subset.fLeft, subset.fRight};
128 Span subsetY{subset.fTop, subset.fBottom};
189 const SkRect& subset,
195 subset,
210 const SkRect& subset,
214 Sampling sampling(*view.proxy(), sampler, subset, &domain, border, false, caps);
227 const SkRect& subset,
233 Sampling sampling(*view.proxy(), sampler, subset, domain, border, false, caps, inset);
327 // 1) Map the coordinates into the subset range [Repeat and MirrorRepeat], or pass
329 // 2) Clamp the coordinates to a 0.5 inset of the subset rect [Clamp, Repeat, and
331 // output of 1). The clamp rect collapses to a line or point it if the subset
336 // other side of the subset (up to 3 more reads). Or if ClampToBorder and not
337 // filtering do a hard less than/greater than test with the subset rect.
385 &te, kFragment_GrShaderFlag, kFloat4_GrSLType, "subset", &subsetName);
431 // These modes either don't use the subset rect or don't need to map the
432 // coords to be within the subset.
532 // Apply subset rect and clamp rect to coords.
609 // on whether both modes are kRepeat and whether we're near a single subset edge
651 // subset boundaries. Snap the input coordinates to nearest neighbor (with an
652 // epsilon) before comparing to the subset rect to avoid GPU interpolation errors
707 float subset[] = {s.fLeft, s.fTop, s.fRight, s.fBottom};
708 pushRect(subset, fSubsetUni);
711 float subset[] = {c.fLeft, c.fTop, c.fRight, c.fBottom};
712 pushRect(subset, fClampUni);