• Home
  • Raw
  • Download

Lines Matching refs:sampling

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