Flutter Engine
The Flutter Engine
|
#include <Transform_graphite.h>
Public Types | |
enum class | Type : unsigned { kIdentity , kSimpleRectStaysRect , kRectStaysRect , kAffine , kPerspective , kInvalid } |
Public Member Functions | |
Transform (const SkM44 &m) | |
Transform (const Transform &t)=default | |
Transform & | operator= (const Transform &t)=default |
operator const SkM44 & () const | |
operator SkMatrix () const | |
bool | operator!= (const Transform &t) const |
bool | operator== (const Transform &t) const |
const SkM44 & | matrix () const |
const SkM44 & | inverse () const |
Type | type () const |
bool | valid () const |
std::pair< float, float > | scaleFactors (const SkV2 &p) const |
float | maxScaleFactor () const |
float | localAARadius (const Rect &bounds) const |
Rect | mapRect (const Rect &rect) const |
Rect | inverseMapRect (const Rect &rect) const |
void | mapPoints (const Rect &localRect, SkV4 deviceOut[4]) const |
void | mapPoints (const SkV2 *localIn, SkV4 *deviceOut, int count) const |
void | mapPoints (const SkV4 *localIn, SkV4 *deviceOut, int count) const |
void | inverseMapPoints (const SkV4 *deviceIn, SkV4 *localOut, int count) const |
Transform | preTranslate (float x, float y) const |
Transform | postTranslate (float x, float y) const |
Transform | concat (const Transform &t) const |
Transform | concat (const SkM44 &t) const |
Transform | concatInverse (const Transform &t) const |
Transform | concatInverse (const SkM44 &t) const |
Static Public Member Functions | |
static constexpr Transform | Identity () |
static constexpr Transform | Invalid () |
static Transform | Translate (float x, float y) |
static Transform | Inverse (const Transform &t) |
Definition at line 19 of file Transform_graphite.h.
|
strong |
Enumerator | |
---|---|
kIdentity | |
kSimpleRectStaysRect | |
kRectStaysRect | |
kAffine | |
kPerspective | |
kInvalid |
Definition at line 23 of file Transform_graphite.h.
|
explicit |
Definition at line 69 of file Transform.cpp.
|
default |
Definition at line 129 of file Transform_graphite.h.
Definition at line 125 of file Transform_graphite.h.
Definition at line 139 of file Transform_graphite.h.
Definition at line 135 of file Transform_graphite.h.
|
inlinestaticconstexpr |
Definition at line 48 of file Transform_graphite.h.
|
inlinestaticconstexpr |
Definition at line 51 of file Transform_graphite.h.
|
inline |
Definition at line 82 of file Transform_graphite.h.
Definition at line 67 of file Transform_graphite.h.
void skgpu::graphite::Transform::inverseMapPoints | ( | const SkV4 * | deviceIn, |
SkV4 * | localOut, | ||
int | count | ||
) | const |
Definition at line 284 of file Transform.cpp.
Definition at line 248 of file Transform.cpp.
float skgpu::graphite::Transform::localAARadius | ( | const Rect & | bounds | ) | const |
Definition at line 213 of file Transform.cpp.
Definition at line 256 of file Transform.cpp.
void skgpu::graphite::Transform::mapPoints | ( | const SkV2 * | localIn, |
SkV4 * | deviceOut, | ||
int | count | ||
) | const |
Definition at line 265 of file Transform.cpp.
void skgpu::graphite::Transform::mapPoints | ( | const SkV4 * | localIn, |
SkV4 * | deviceOut, | ||
int | count | ||
) | const |
Definition at line 279 of file Transform.cpp.
Definition at line 241 of file Transform.cpp.
|
inline |
Definition at line 81 of file Transform_graphite.h.
|
inline |
Definition at line 93 of file Transform_graphite.h.
|
inline |
Definition at line 73 of file Transform_graphite.h.
|
inline |
Definition at line 74 of file Transform_graphite.h.
|
inline |
Definition at line 76 of file Transform_graphite.h.
|
inline |
Definition at line 77 of file Transform_graphite.h.
|
inline |
Definition at line 120 of file Transform_graphite.h.
|
inline |
Definition at line 117 of file Transform_graphite.h.
std::pair< float, float > skgpu::graphite::Transform::scaleFactors | ( | const SkV2 & | p | ) | const |
Definition at line 161 of file Transform.cpp.
|
inlinestatic |
Definition at line 56 of file Transform_graphite.h.
|
inline |
Definition at line 84 of file Transform_graphite.h.
|
inline |
Definition at line 85 of file Transform_graphite.h.