Definition at line 323 of file gradients_2pt_conical.cpp.
◆ ConicalGradientsGM()
Definition at line 325 of file gradients_2pt_conical.cpp.
327 : fGradCaseType(gradCaseType)
328 , fDither(dither)
329 , fMode(mode) {
331 fDither ? "" : "_nodither");
332 switch (mode) {
334 fName.appendf(
"_repeat");
335 break;
337 fName.appendf(
"_mirror");
338 break;
339 default:
340 break;
341 }
342 }
void printf(const char format[],...) SK_PRINTF_LIKE(2
constexpr struct skiagm::@264 gGradCases[]
◆ getISize()
SkISize skiagm::ConicalGradientsGM::getISize |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ getName()
SkString skiagm::ConicalGradientsGM::getName |
( |
| ) |
const |
|
inlineoverrideprivatevirtual |
◆ onDraw()
void skiagm::ConicalGradientsGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprivatevirtual |
Reimplemented from skiagm::GM.
Definition at line 351 of file gradients_2pt_conical.cpp.
351 {
352
354 { 0, 0 },
356 };
359 paint.setAntiAlias(
true);
360 paint.setDither(fDither);
361
363
366
367 for (
size_t i = 0; i < std::size(
gGradData); i++) {
369 for (
int j = 0; j <
count; j++) {
371
372 if (i == 3) {
373 scale.setScale(0.5f, 0.5f);
374 scale.postTranslate(25.f, 25.f);
375 }
376
380 }
383 }
384 }
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
static const SkMatrix & I()
constexpr GradData gGradData[]
sk_sp< SkShader >(* GradMaker)(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
◆ onOnceBeforeDraw()
void skiagm::ConicalGradientsGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: