Flutter Engine
The Flutter Engine
Classes | Macros | Enumerations
SkMatrix.h File Reference
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkFloatingPoint.h"
#include "include/private/base/SkMacros.h"
#include "include/private/base/SkTo.h"
#include <cstdint>
#include <cstring>

Go to the source code of this file.

Classes

class  SkMatrix
 

Macros

#define SK_SUPPORT_LEGACY_MATRIX_RECTTORECT
 

Enumerations

enum class  SkApplyPerspectiveClip { kNo , kYes }
 

Macro Definition Documentation

◆ SK_SUPPORT_LEGACY_MATRIX_RECTTORECT

#define SK_SUPPORT_LEGACY_MATRIX_RECTTORECT

Definition at line 27 of file SkMatrix.h.

Enumeration Type Documentation

◆ SkApplyPerspectiveClip

enum class SkApplyPerspectiveClip
strong

When we transform points through a matrix containing perspective (the bottom row is something other than 0,0,1), the bruteforce math can produce confusing results (since we might divide by 0, or a negative w value). By default, methods that map rects and paths will apply perspective clipping, but this can be changed by specifying kYes to those methods.

Enumerator
kNo 

Don't pre-clip the geometry before applying the (perspective) matrix.

kYes 

Do pre-clip the geometry before applying the (perspective) matrix.

Definition at line 35 of file SkMatrix.h.

35 {
36 kNo, //!< Don't pre-clip the geometry before applying the (perspective) matrix
37 kYes, //!< Do pre-clip the geometry before applying the (perspective) matrix
38};
@ kYes
Do pre-clip the geometry before applying the (perspective) matrix.
@ kNo
Don't pre-clip the geometry before applying the (perspective) matrix.