Go to the source code of this file.
|
#define | DEF_GM(CODE) |
|
#define | DEF_SIMPLE_GM(NAME, CANVAS, W, H) DEF_SIMPLE_GM_BG_NAME(NAME, CANVAS, W, H, SK_ColorWHITE, SkString(#NAME)) |
|
#define | DEF_SIMPLE_GM_BG(NAME, CANVAS, W, H, BGCOLOR) DEF_SIMPLE_GM_BG_NAME(NAME, CANVAS, W, H, BGCOLOR, SkString(#NAME)) |
|
#define | DEF_SIMPLE_GM_BG_NAME(NAME, CANVAS, W, H, BGCOLOR, NAME_STR) |
|
#define | DEF_SIMPLE_GM_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H) DEF_SIMPLE_GM_BG_NAME_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H, SK_ColorWHITE, SkString(#NAME)) |
|
#define | DEF_SIMPLE_GM_BG_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H, BGCOLOR) DEF_SIMPLE_GM_BG_NAME_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H, BGCOLOR, SkString(#NAME)) |
|
#define | DEF_SIMPLE_GM_BG_NAME_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H, BGCOLOR, NAME_STR) |
|
#define | DEF_GM_REGISTERER_FN(FN) static skiagm::GMRegistererFnRegistry SK_MACRO_APPEND_COUNTER(REG_)(FN) |
|
◆ DEF_GM
Value:
[]() { return std::unique_ptr<skiagm::GM>([]() { CODE; }()); });
#define SK_MACRO_APPEND_COUNTER(name)
Definition at line 40 of file gm.h.
◆ DEF_GM_REGISTERER_FN
Definition at line 73 of file gm.h.
◆ DEF_SIMPLE_GM
Definition at line 50 of file gm.h.
◆ DEF_SIMPLE_GM_BG
Definition at line 52 of file gm.h.
◆ DEF_SIMPLE_GM_BG_CAN_FAIL
#define DEF_SIMPLE_GM_BG_CAN_FAIL |
( |
|
NAME, |
|
|
|
CANVAS, |
|
|
|
ERR_MSG, |
|
|
|
W, |
|
|
|
H, |
|
|
|
BGCOLOR |
|
) |
| DEF_SIMPLE_GM_BG_NAME_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H, BGCOLOR, SkString(#NAME)) |
Definition at line 64 of file gm.h.
◆ DEF_SIMPLE_GM_BG_NAME
#define DEF_SIMPLE_GM_BG_NAME |
( |
|
NAME, |
|
|
|
CANVAS, |
|
|
|
W, |
|
|
|
H, |
|
|
|
BGCOLOR, |
|
|
|
NAME_STR |
|
) |
| |
Value:
DEF_SIMPLE_GM_BG_NAME_CAN_FAIL(
NAME, CANVAS,,
W,
H, BGCOLOR, NAME_STR) { \
SK_MACRO_CONCAT(
NAME,_GM_inner)(CANVAS); \
} \
#define SK_MACRO_CONCAT(X, Y)
Definition at line 54 of file gm.h.
◆ DEF_SIMPLE_GM_BG_NAME_CAN_FAIL
#define DEF_SIMPLE_GM_BG_NAME_CAN_FAIL |
( |
|
NAME, |
|
|
|
CANVAS, |
|
|
|
ERR_MSG, |
|
|
|
W, |
|
|
|
H, |
|
|
|
BGCOLOR, |
|
|
|
NAME_STR |
|
) |
| |
Value:
Definition at line 66 of file gm.h.
◆ DEF_SIMPLE_GM_CAN_FAIL
#define DEF_SIMPLE_GM_CAN_FAIL |
( |
|
NAME, |
|
|
|
CANVAS, |
|
|
|
ERR_MSG, |
|
|
|
W, |
|
|
|
H |
|
) |
| DEF_SIMPLE_GM_BG_NAME_CAN_FAIL(NAME, CANVAS, ERR_MSG, W, H, SK_ColorWHITE, SkString(#NAME)) |
Definition at line 62 of file gm.h.
◆ MarkGMBad()
Definition at line 238 of file gm.cpp.
238 {
240
242
243
246 paint.setStrokeWidth(2);
252 });
253}
#define SkColorSetRGB(r, g, b)
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
static void mark(SkCanvas *canvas, SkScalar x, SkScalar y, Fn &&fn)
constexpr SkColor4f kTransparent
◆ MarkGMGood()
Definition at line 221 of file gm.cpp.
221 {
223
225
226
229 paint.setStrokeWidth(2);
235 });
236}