Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Enumerations | Variables
SkSamplingOptions.h File Reference
#include "include/core/SkTypes.h"
#include <algorithm>
#include <new>

Go to the source code of this file.

Classes

struct  SkCubicResampler
 
struct  SkSamplingOptions
 

Enumerations

enum class  SkFilterMode { kNearest , kLinear , kLast = kLinear }
 
enum class  SkMipmapMode { kNone , kNearest , kLinear , kLast = kLinear }
 

Variables

static constexpr int kSkFilterModeCount = static_cast<int>(SkFilterMode::kLast) + 1
 
static constexpr int kSkMipmapModeCount = static_cast<int>(SkMipmapMode::kLast) + 1
 

Enumeration Type Documentation

◆ SkFilterMode

enum class SkFilterMode
strong
Enumerator
kNearest 
kLinear 
kLast 

Definition at line 16 of file SkSamplingOptions.h.

16 {
17 kNearest, // single sample point (nearest neighbor)
18 kLinear, // interporate between 2x2 sample points (bilinear interpolation)
19
20 kLast = kLinear,
21};

◆ SkMipmapMode

enum class SkMipmapMode
strong
Enumerator
kNone 
kNearest 
kLinear 
kLast 

Definition at line 24 of file SkSamplingOptions.h.

24 {
25 kNone, // ignore mipmap levels, sample from the "base"
26 kNearest, // sample from the nearest level
27 kLinear, // interpolate between the two nearest levels
28
29 kLast = kLinear,
30};

Variable Documentation

◆ kSkFilterModeCount

constexpr int kSkFilterModeCount = static_cast<int>(SkFilterMode::kLast) + 1
staticconstexpr

Definition at line 22 of file SkSamplingOptions.h.

◆ kSkMipmapModeCount

constexpr int kSkMipmapModeCount = static_cast<int>(SkMipmapMode::kLast) + 1
staticconstexpr

Definition at line 31 of file SkSamplingOptions.h.