Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
sktext::gpu::SDFTMatrixRange Class Reference

#include <SDFTControl.h>

Public Member Functions

 SDFTMatrixRange (SkScalar min, SkScalar max)
 
bool matrixInRange (const SkMatrix &matrix) const
 
void flatten (SkWriteBuffer &buffer) const
 

Static Public Member Functions

static SDFTMatrixRange MakeFromBuffer (SkReadBuffer &buffer)
 

Detailed Description

Definition at line 28 of file SDFTControl.h.

Constructor & Destructor Documentation

◆ SDFTMatrixRange()

sktext::gpu::SDFTMatrixRange::SDFTMatrixRange ( SkScalar  min,
SkScalar  max 
)
inline

Definition at line 30 of file SDFTControl.h.

30: fMatrixMin{min}, fMatrixMax{max} {}
static float max(float r, float g, float b)
Definition: hsl.cpp:49
static float min(float r, float g, float b)
Definition: hsl.cpp:48

Member Function Documentation

◆ flatten()

void sktext::gpu::SDFTMatrixRange::flatten ( SkWriteBuffer buffer) const

Definition at line 140 of file SDFTControl.cpp.

140 {
141 buffer.writeScalar(fMatrixMin);
142 buffer.writeScalar(fMatrixMax);
143}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
Definition: switches.h:126

◆ MakeFromBuffer()

SDFTMatrixRange sktext::gpu::SDFTMatrixRange::MakeFromBuffer ( SkReadBuffer buffer)
static

Definition at line 145 of file SDFTControl.cpp.

145 {
146 SkScalar min = buffer.readScalar();
147 SkScalar max = buffer.readScalar();
148 return SDFTMatrixRange{min, max};
149}
SDFTMatrixRange(SkScalar min, SkScalar max)
Definition: SDFTControl.h:30
float SkScalar
Definition: extension.cpp:12

◆ matrixInRange()

bool sktext::gpu::SDFTMatrixRange::matrixInRange ( const SkMatrix matrix) const

Definition at line 135 of file SDFTControl.cpp.

135 {
136 SkScalar maxScale = matrix.getMaxScale();
137 return fMatrixMin < maxScale && maxScale <= fMatrixMax;
138}
unsigned useCenter Optional< SkMatrix > matrix
Definition: SkRecords.h:258

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