Definition at line 102 of file SkPath.cpp.
◆ SkAutoPathBoundsUpdate()
SkAutoPathBoundsUpdate::SkAutoPathBoundsUpdate |
( |
SkPath * |
path, |
|
|
const SkRect & |
r |
|
) |
| |
|
inline |
Definition at line 104 of file SkPath.cpp.
104 : fPath(path), fRect(r) {
105
107
108
109 fHasValidBounds =
path->hasComputedBounds() &&
path->isFinite();
110 fEmpty =
path->isEmpty();
111 if (fHasValidBounds && !fEmpty) {
113 }
115 }
static bool is_degenerate(const SkPath &path)
static void joinNoEmptyChecks(SkRect *dst, const SkRect &src)
const SkRect & getBounds() const
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
◆ ~SkAutoPathBoundsUpdate()
SkAutoPathBoundsUpdate::~SkAutoPathBoundsUpdate |
( |
| ) |
|
|
inline |
Definition at line 117 of file SkPath.cpp.
117 {
120 if ((fEmpty || fHasValidBounds) && fRect.
isFinite()) {
121 fPath->setBounds(fRect);
122 }
123 }
The documentation for this class was generated from the following file: