Definition at line 353 of file pathfill.cpp.
◆ getISize()
SkISize PathInverseFillGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString PathInverseFillGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void PathInverseFillGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 382 of file pathfill.cpp.
382 {
386
387 SkRect clipR = {0, 0, 100, 200};
388
390
391 for (int doclip = 0; doclip <= 1; ++doclip) {
392 for (int aa = 0; aa <= 1; ++aa) {
395
398
399 const SkRect* clipPtr = doclip ? &clipR :
nullptr;
400
403
406 }
407 }
408 }
static constexpr bool SkToBool(const T &x)
static void show(SkCanvas *canvas, const SkPath &path, const SkPaint &paint, const SkRect *clip, SkScalar top, const SkScalar bottom)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void translate(SkScalar dx, SkScalar dy)
SkPathBuilder & toggleInverseFillType()
SkPathBuilder & addCircle(SkScalar center_x, SkScalar center_y, SkScalar radius, SkPathDirection dir=SkPathDirection::kCW)
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
SkScalar fBottom
larger y-axis bounds
constexpr float centerY() const
SkScalar fTop
smaller y-axis bounds
◆ onOnceBeforeDraw()
void PathInverseFillGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 357 of file pathfill.cpp.
357 {
358 for (
size_t i = 0;
i <
N;
i++) {
362 }
363 }
constexpr MakePathProc gProcs[]
◆ show()
Definition at line 369 of file pathfill.cpp.
370 {
377 }
380 }
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
void drawPath(const SkPath &path, const SkPaint &paint)
The documentation for this class was generated from the following file: