Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
SkSamplingPriv Class Reference

#include <SkSamplingPriv.h>

Static Public Member Functions

static size_t FlatSize (const SkSamplingOptions &options)
 
static bool NoChangeWithIdentityMatrix (const SkSamplingOptions &sampling)
 
static SkSamplingOptions AnisoFallback (bool imageIsMipped)
 
static SkSamplingOptions FromFQ (SkLegacyFQ fq, SkMediumAs behavior=kNearest_SkMediumAs)
 

Detailed Description

Definition at line 37 of file SkSamplingPriv.h.

Member Function Documentation

◆ AnisoFallback()

static SkSamplingOptions SkSamplingPriv::AnisoFallback ( bool  imageIsMipped)
inlinestatic

Definition at line 59 of file SkSamplingPriv.h.

◆ FlatSize()

static size_t SkSamplingPriv::FlatSize ( const SkSamplingOptions options)
inlinestatic

Definition at line 39 of file SkSamplingPriv.h.

39 {
40 size_t size = sizeof(uint32_t); // maxAniso
41 if (!options.isAniso()) {
42 size += 3 * sizeof(uint32_t); // bool32 + [2 floats | 2 ints]
43 }
44 return size;
45 }
const char * options
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition switches.h:259

◆ FromFQ()

static SkSamplingOptions SkSamplingPriv::FromFQ ( SkLegacyFQ  fq,
SkMediumAs  behavior = kNearest_SkMediumAs 
)
inlinestatic

Definition at line 64 of file SkSamplingPriv.h.

64 {
65 switch (fq) {
67 return SkSamplingOptions(SkCubicResampler{1/3.0f, 1/3.0f});
72 case kLow_SkLegacyFQ:
75 break;
76 }
78 }
SkMipmapMode
@ kNearest_SkMediumAs
@ kHigh_SkLegacyFQ
bicubic resampling; slowest but good quality
@ kLow_SkLegacyFQ
bilerp
@ kMedium_SkLegacyFQ
bilerp + mipmaps; good for down-scaling
@ kNone_SkLegacyFQ
nearest-neighbor; fastest but lowest quality

◆ NoChangeWithIdentityMatrix()

static bool SkSamplingPriv::NoChangeWithIdentityMatrix ( const SkSamplingOptions sampling)
inlinestatic

Definition at line 48 of file SkSamplingPriv.h.

48 {
49 // If B == 0, the cubic resampler should have no effect for identity matrices
50 // https://entropymine.com/imageworsener/bicubic/
51 // We assume aniso has no effect with an identity transform.
52 return !sampling.useCubic || sampling.cubic.B == 0;
53 }
SkSamplingOptions sampling
Definition SkRecords.h:337
const SkCubicResampler cubic

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