Definition at line 24 of file conicpaths.cpp.
◆ append_path()
void ConicPathsGM::append_path |
( |
Proc |
proc | ) |
|
|
inlineprotected |
◆ drawGiantCircle()
void ConicPathsGM::drawGiantCircle |
( |
SkCanvas * |
canvas | ) |
|
|
inlineprotected |
Definition at line 99 of file conicpaths.cpp.
99 {
102 }
void drawPath(const SkPath &path, const SkPaint &paint)
◆ getISize()
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString ConicPathsGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void ConicPathsGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 104 of file conicpaths.cpp.
104 {
105 const SkAlpha kAlphaValue[] = { 0xFF, 0x40 };
106
109
111 for (
int p = 0;
p < fPaths.
size(); ++
p) {
114 paint.setARGB(kAlphaValue[
a], 0, 0, 0);
115 for (int aa = 0; aa < 2; ++aa) {
117 for (int fh = 0; fh < 2; ++fh) {
118 paint.setStroke(fh != 0);
119
125
127 }
128 }
129 }
132 }
134
136 }
static constexpr bool SkToBool(const T &x)
void drawGiantCircle(SkCanvas *canvas)
void translate(SkScalar dx, SkScalar dy)
Optional< SkRect > bounds
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
◆ onOnceBeforeDraw()
void ConicPathsGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 36 of file conicpaths.cpp.
36 {
40 conicCircle->
conicTo(0, 50, 50, 50,
w);
42 conicCircle->
rConicTo(0, -50, -50, -50,
w);
43 conicCircle->
rConicTo(-50, 0, -50, 50,
w);
44 });
45
48 hyperbola->
conicTo(0, 100, 100, 100, 2);
49 });
50
52 thinHyperbola->
moveTo(0, 0);
53 thinHyperbola->
conicTo(100, 100, 5, 0, 2);
54 });
55
57 veryThinHyperbola->
moveTo(0, 0);
58 veryThinHyperbola->
conicTo(100, 100, 1, 0, 2);
59 });
60
62 closedHyperbola->
moveTo(0, 0);
63 closedHyperbola->
conicTo(100, 100, 0, 0, 2);
64 });
65
67
68 nearParabola->
moveTo(0, 0);
69 nearParabola->
conicTo(0, 100, 100, 100, 0.999f);
70 });
71
75 });
76
78 veryThinEllipse->
moveTo(0, 0);
80 });
81
83 closedEllipse->
moveTo(0, 0);
85 });
86
87 {
90 b.moveTo(2.1e+11f, -1.05e+11f);
91 b.conicTo(2.1e+11f, 0, 1.05e+11f, 0,
w);
92 b.conicTo(0, 0, 0, -1.05e+11f,
w);
93 b.conicTo(0, -2.1e+11f, 1.05e+11f, -2.1e+11f,
w);
94 b.conicTo(2.1e+11f, -2.1e+11f, 2.1e+11f, -1.05e+11f,
w);
95 fGiantCircle =
b.detach();
96 }
97 }
void append_path(Proc proc)
SkPathBuilder & conicTo(SkPoint pt1, SkPoint pt2, SkScalar w)
SkPathBuilder & moveTo(SkPoint pt)
SkPathBuilder & rConicTo(SkPoint p1, SkPoint p2, SkScalar w)
The documentation for this class was generated from the following file: