Definition at line 58 of file simpleaaclip.cpp.
◆ SkGeomTypes
Enumerator |
---|
kRect_GeomType | |
kPath_GeomType | |
kAAClip_GeomType | |
Definition at line 60 of file simpleaaclip.cpp.
◆ SimpleClipGM()
skiagm::SimpleClipGM::SimpleClipGM |
( |
SkGeomTypes |
geomType | ) |
|
|
inline |
◆ buildRgn()
Definition at line 86 of file simpleaaclip.cpp.
86 {
88
92 }
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
bool setPath(const SkPath &, const SkIRect &bounds, bool doAA=true)
const SkRect & getBounds() const
void roundOut(SkIRect *dst) const
◆ drawOrig()
void skiagm::SimpleClipGM::drawOrig |
( |
SkCanvas * |
canvas | ) |
|
|
inlineprotected |
Definition at line 94 of file simpleaaclip.cpp.
94 {
96
99
102 }
constexpr SkColor SK_ColorBLACK
void drawRect(const SkRect &rect, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
◆ drawPathsOped()
Definition at line 116 of file simpleaaclip.cpp.
116 {
117
119
121
122
124
126 canvas->
clipPath(fRectPath, op,
true);
127 } else {
128
131 }
132
133
136
139
141
143 }
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void clipPath(const SkPath &path, SkClipOp op, bool doAntiAlias)
void drawOrig(SkCanvas *canvas)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
◆ drawRgnOped()
Definition at line 104 of file simpleaaclip.cpp.
104 {
105
107
110
114 }
void buildRgn(SkAAClip *clip, SkClipOp op)
static void paint_rgn(SkCanvas *canvas, const SkAAClip &clip, const SkPaint &paint)
◆ getISize()
SkISize skiagm::SimpleClipGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString skiagm::SimpleClipGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
Implements skiagm::GM.
Definition at line 145 of file simpleaaclip.cpp.
145 {
147 str.
printf(
"simpleaaclip_%s",
150 "aaclip"));
151 return str;
152 }
void printf(const char format[],...) SK_PRINTF_LIKE(2
◆ onDraw()
void skiagm::SimpleClipGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 156 of file simpleaaclip.cpp.
156 {
157
158 const struct {
162 } gOps[] = {
165 };
166
169 int xOff = 0;
170
171 for (
size_t op = 0; op <
std::size(gOps); op++) {
173
175 this->
drawRgnOped(canvas, gOps[op].fOp, gOps[op].fColor);
176 } else {
178 }
179
180 if (xOff >= 400) {
182 xOff = 0;
183 } else {
185 xOff += 200;
186 }
187 }
188 }
constexpr SkColor SK_ColorRED
void translate(SkScalar dx, SkScalar dy)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
void drawRgnOped(SkCanvas *canvas, SkClipOp op, SkColor color)
void drawPathsOped(SkCanvas *canvas, SkClipOp op, SkColor color)
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
font
Font Metadata and Metrics.
◆ onOnceBeforeDraw()
void skiagm::SimpleClipGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 71 of file simpleaaclip.cpp.
71 {
72
74 100.65f,
75 150.65f,
76 150.65f);
77 fRect = fBase;
80
84 }
SkPath & addRoundRect(const SkRect &rect, SkScalar rx, SkScalar ry, SkPathDirection dir=SkPathDirection::kCW)
void inset(float dx, float dy)
void offset(float dx, float dy)
void setLTRB(float left, float top, float right, float bottom)
The documentation for this class was generated from the following file: