Skia
2D Graphics Library
SkSamplingOptions Struct Reference

#include <SkSamplingOptions.h>

Public Types

enum  MediumBehavior { kMedium_asMipmapNearest, kMedium_asMipmapLinear }
 

Public Member Functions

 SkSamplingOptions ()=default
 
 SkSamplingOptions (const SkSamplingOptions &)=default
 
SkSamplingOptionsoperator= (const SkSamplingOptions &that)
 
 SkSamplingOptions (SkFilterMode fm, SkMipmapMode mm)
 
 SkSamplingOptions (SkFilterMode fm)
 
 SkSamplingOptions (const SkCubicResampler &c)
 
 SkSamplingOptions (SkFilterQuality, MediumBehavior=kMedium_asMipmapNearest)
 
bool operator== (const SkSamplingOptions &other) const
 
bool operator!= (const SkSamplingOptions &other) const
 

Public Attributes

const bool useCubic = false
 
const SkCubicResampler cubic = {0, 0}
 
const SkFilterMode filter = SkFilterMode::kNearest
 
const SkMipmapMode mipmap = SkMipmapMode::kNone
 

Member Enumeration Documentation

◆ MediumBehavior

Enumerator
kMedium_asMipmapNearest 
kMedium_asMipmapLinear 

Constructor & Destructor Documentation

◆ SkSamplingOptions() [1/6]

SkSamplingOptions::SkSamplingOptions ( )
default

◆ SkSamplingOptions() [2/6]

SkSamplingOptions::SkSamplingOptions ( const SkSamplingOptions )
default

◆ SkSamplingOptions() [3/6]

SkSamplingOptions::SkSamplingOptions ( SkFilterMode  fm,
SkMipmapMode  mm 
)
inline

◆ SkSamplingOptions() [4/6]

SkSamplingOptions::SkSamplingOptions ( SkFilterMode  fm)
inlineexplicit

◆ SkSamplingOptions() [5/6]

SkSamplingOptions::SkSamplingOptions ( const SkCubicResampler c)
inlineexplicit

◆ SkSamplingOptions() [6/6]

SkSamplingOptions::SkSamplingOptions ( SkFilterQuality  ,
MediumBehavior  = kMedium_asMipmapNearest 
)
explicit

Member Function Documentation

◆ operator!=()

bool SkSamplingOptions::operator!= ( const SkSamplingOptions other) const
inline

◆ operator=()

SkSamplingOptions& SkSamplingOptions::operator= ( const SkSamplingOptions that)
inline

◆ operator==()

bool SkSamplingOptions::operator== ( const SkSamplingOptions other) const
inline

Member Data Documentation

◆ cubic

const SkCubicResampler SkSamplingOptions::cubic = {0, 0}

◆ filter

const SkFilterMode SkSamplingOptions::filter = SkFilterMode::kNearest

◆ mipmap

const SkMipmapMode SkSamplingOptions::mipmap = SkMipmapMode::kNone

◆ useCubic

const bool SkSamplingOptions::useCubic = false

The documentation for this struct was generated from the following file: