8#ifndef SkImageSampling_DEFINED
9#define SkImageSampling_DEFINED
59 const int maxAniso = 0;
60 const bool useCubic =
false;
101 bool isAniso()
const {
return maxAniso != 0; }
static constexpr int kSkFilterModeCount
static constexpr int kSkMipmapModeCount
static float max(float r, float g, float b)
SkSamplingOptions(SkFilterMode::kLinear))
static constexpr SkCubicResampler CatmullRom()
static constexpr SkCubicResampler Mitchell()
constexpr SkSamplingOptions(SkFilterMode fm, SkMipmapMode mm)
SkSamplingOptions & operator=(const SkSamplingOptions &that)
bool operator==(const SkSamplingOptions &other) const
static constexpr SkSamplingOptions Aniso(int maxAniso)
constexpr SkSamplingOptions(const SkCubicResampler &c)
const SkCubicResampler cubic
constexpr SkSamplingOptions()=default
bool operator!=(const SkSamplingOptions &other) const
const SkFilterMode filter
SkSamplingOptions(const SkSamplingOptions &)=default
constexpr SkSamplingOptions(SkFilterMode fm)
const SkMipmapMode mipmap