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++) {
69 }
70
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
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
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: