Lines Matching refs:sampling

71                              const SkSamplingOptions& sampling,
76 , fSampling(sampling)
105 SkSamplingOptions sampling;
111 // we just default to Nearest in sampling
114 sampling = SkSamplingPriv::Read(buffer);
124 return SkImageShader::Make(std::move(img), tmx, tmy, sampling, &localMatrix);
191 auto supported = [](const SkSamplingOptions& sampling) {
198 if (sampling.filter == f && sampling.mipmap == m) {
313 const SkSamplingOptions& sampling,
316 tmx, tmy, sampling, localMatrix);
350 static SkSamplingOptions tweak_sampling(SkSamplingOptions sampling, const SkMatrix& matrix) {
351 SkFilterMode filter = sampling.filter;
361 return SkSamplingOptions(filter, sampling.mipmap);
380 // We only support certain sampling options in stages so far
381 auto sampling = fSampling;
382 if (sampling.useCubic) {
383 if (!is_default_cubic_resampler(sampling.cubic)) {
386 } else if (sampling.mipmap == SkMipmapMode::kLinear) {
391 if (updater && (sampling.mipmap != SkMipmapMode::kNone)) {
405 SkASSERT(!sampling.useCubic || sampling.mipmap == SkMipmapMode::kNone);
406 auto* access = SkMipmapAccessor::Make(alloc, fImage.get(), matrix, sampling.mipmap);
418 if (!sampling.useCubic) {
421 sampling = tweak_sampling(sampling, matrix);
423 matrix = tweak_inv_matrix(sampling.filter, matrix);
530 if (sampling.useCubic) {
549 && !sampling.useCubic && sampling.filter == SkFilterMode::kLinear
560 && !sampling.useCubic && sampling.filter == SkFilterMode::kLinear
576 && sampling.useCubic
587 && sampling.useCubic
612 if (sampling.useCubic) {
636 } else if (sampling.filter == SkFilterMode::kLinear) {
685 auto sampling = fSampling;
686 auto* access = SkMipmapAccessor::Make(alloc, fImage.get(), baseInv, sampling.mipmap);
692 if (!sampling.useCubic && !coordShader) {
695 sampling = tweak_sampling(sampling, upperInv);
697 upperInv = tweak_inv_matrix(sampling.filter, upperInv);
830 if (sampling.useCubic) {
838 SkM44 weights = CubicResamplerMatrix(sampling.cubic.B, sampling.cubic.C);
875 } else if (sampling.filter == SkFilterMode::kLinear) {
890 SkASSERT(sampling.filter == SkFilterMode::kNearest);
924 if (sampling.useCubic) {