Definition at line 128 of file gradients_degenerate.cpp.
◆ DegenerateGradientGM()
DegenerateGradientGM::DegenerateGradientGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize DegenerateGradientGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString DegenerateGradientGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void DegenerateGradientGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 139 of file gradients_degenerate.cpp.
139 {
142
146 draw_row(canvas,
"sweep-45: empty, blue, blue, red 45 degree sector then green",
149 draw_row(canvas,
"2pt-conic-1: empty, blue, blue, full red circle on green",
151 }
void translate(SkScalar dx, SkScalar dy)
static void draw_tile_header(SkCanvas *canvas)
static void draw_row(SkCanvas *canvas, const char *desc, GradientFactory factory)
static sk_sp< SkShader > make_linear(SkTileMode mode)
static sk_sp< SkShader > make_2pt_conic(SkTileMode mode)
static sk_sp< SkShader > make_radial(SkTileMode mode)
static sk_sp< SkShader > make_sweep(SkTileMode mode)
static constexpr int TILE_GAP
static sk_sp< SkShader > make_2pt_conic_zero_rad(SkTileMode mode)
static sk_sp< SkShader > make_sweep_zero_ang(SkTileMode mode)
The documentation for this class was generated from the following file: