Definition at line 19 of file circularclips.cpp.
◆ getISize()
SkISize CircularClipsGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString CircularClipsGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void CircularClipsGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 41 of file circularclips.cpp.
41 {
45 };
46
48
50
51
54 canvas->
scale(10, 10);
55 canvas->
translate(-((fX1 + fX2)/2 - fR), -(fY - 2*fR/3));
58
60
62
64
65 for (size_t i = 0; i < 4; i++) {
67 if (i % 2 == 0) {
69 }
70
72 for (
size_t op = 0; op < std::size(
ops); op++) {
74
77
79
82 }
85 }
86 }
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void clipPath(const SkPath &path, SkClipOp op, bool doAntiAlias)
void scale(SkScalar sx, SkScalar sy)
void setColor(SkColor color)
void toggleInverseFillType()
sk_sp< SkBlender > blender SkRect rect
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
◆ onOnceBeforeDraw()
void CircularClipsGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 24 of file circularclips.cpp.
24 {
25 fX1 = 80;
26 fX2 = 120;
27 fY = 50;
28 fR = 40;
29
32 }
static SkPath Circle(SkScalar center_x, SkScalar center_y, SkScalar radius, SkPathDirection dir=SkPathDirection::kCW)
◆ runAsBench()
bool CircularClipsGM::runAsBench |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: