58 center0.
set(pts[0].fX + radius0, pts[0].fY + radius0);
59 center1.
set(pts[1].fX - radius1, pts[1].fY - radius1);
61 data.fPos,
data.fCount, tm, 0, &localMatrix);
68 center0.
set(pts[0].fX, pts[0].fY);
69 center1.
set(pts[1].fX, pts[1].fY);
71 data.fPos,
data.fCount, tm, 0, &localMatrix);
79 center0.
set(pts[0].fX + radius0, pts[0].fY + radius0);
80 center1.
set(pts[1].fX - radius1, pts[1].fY - radius1);
82 data.fPos,
data.fCount, tm, 0, &localMatrix);
93 center0, (pts[1].fX - pts[0].fX) / 2,
106 center1, (pts[1].fX - pts[0].fX) / 7,
117 center0, (pts[1].fX - pts[0].fX) / 2,
128 center0, (pts[1].fX - pts[0].fX) / 7,
141 center0, (pts[1].fX - pts[0].fX) / 2,
177 center0.
set(pts[0].fX + radius0, pts[0].fY + radius0);
178 center1.
set(pts[1].fX - radius1, pts[1].fY - radius1);
181 data.fCount, tm, 0, &localMatrix);
190 center0.
set(pts[0].fX + radius0, pts[0].fY + radius0);
191 center1.
set(pts[1].fX - radius1, pts[1].fY - radius1);
193 data.fPos,
data.fCount, tm, 0, &localMatrix);
203 center0.
set(center1.
fX + radius1, center1.
fY);
205 data.fPos,
data.fCount, tm, 0, &localMatrix);
215 center0.
set(center1.
fX, center1.
fY + radius1);
217 data.fPos,
data.fCount, tm, 0, &localMatrix);
228 center0.
set(center1.
fX + radius1, center1.
fY);
230 data.fPos,
data.fCount, tm, 0, &localMatrix);
240 center0.
set(center1.
fX, center1.
fY + radius1);
242 data.fPos,
data.fCount, tm, 0, &localMatrix);
252 center0.
set(center1.
fX - radius1 + radius0, center1.
fY);
254 data.fPos,
data.fCount, tm, 0, &localMatrix);
264 center0.
set(center1.
fX, center1.
fY + radius1 - radius0);
266 data.fPos,
data.fCount, tm, 0, &localMatrix);
277 center0, (pts[1].fX - pts[0].fX) / 2,
327 : fGradCaseType(gradCaseType)
331 fDither ?
"" :
"_nodither");
334 fName.appendf(
"_repeat");
337 fName.appendf(
"_mirror");
345 void onOnceBeforeDraw()
override { this->
setBGColor(0xFFDDDDDD); }
347 SkString getName()
const override {
return fName; }
349 SkISize getISize()
override {
return {840, 815}; }
351 void onDraw(
SkCanvas* canvas)
override {
359 paint.setAntiAlias(
true);
360 paint.setDither(fDither);
369 for (
int j = 0; j <
count; j++) {
373 scale.setScale(0.5f, 0.5f);
374 scale.postTranslate(25.f, 25.f);
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorGREEN
constexpr SkColor SK_ColorWHITE
#define SkScalarAve(a, b)
static SkScalar SkScalarInterp(SkScalar A, SkScalar B, SkScalar t)
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
static sk_sp< SkShader > MakeTwoPointConical(const SkPoint &start, SkScalar startRadius, const SkPoint &end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
static const SkMatrix & I()
void printf(const char format[],...) SK_PRINTF_LIKE(2
ConicalGradientsGM(GradCaseType gradCaseType, bool dither, SkTileMode mode=SkTileMode::kClamp)
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 mode
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
static sk_sp< SkShader > Make2ConicalZeroRad(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
static sk_sp< SkShader > Make2ConicalZeroRadCenter(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
static sk_sp< SkShader > Make2ConicalZeroRadOutside(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
static sk_sp< SkShader > Make2ConicalInsideSmallRad(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
static sk_sp< SkShader > Make2ConicalOutsideStrip(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
constexpr GradMaker gGradMakersInside[]
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
constexpr SkColor gColorClamp[]
static sk_sp< SkShader > Make2ConicalZeroRadFlip(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
static sk_sp< SkShader > Make2ConicalZeroRadFlipOutside(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
static sk_sp< SkShader > Make2ConicalTouchX(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
static sk_sp< SkShader > Make2ConicalZeroRadEdgeY(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
static sk_sp< SkShader > Make2ConicalInside(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
constexpr SkScalar gPos2[]
static sk_sp< SkShader > Make2ConicalEdgeY(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
constexpr SkScalar gPos0[]
constexpr GradData gGradData[]
static SkPath scale(const SkPath &path, SkScalar scale)
static sk_sp< SkShader > Make2ConicalOutside(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
constexpr struct skiagm::@259 gGradCases[]
constexpr GradMaker gGradMakersEdgeCases[]
constexpr SkScalar gPos1[]
constexpr GradMaker gGradMakersOutside[]
static sk_sp< SkShader > Make2ConicalTouchY(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
static sk_sp< SkShader > Make2ConicalInsideCenter(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
static sk_sp< SkShader > Make2ConicalEdgeX(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
sk_sp< SkShader >(* GradMaker)(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
static sk_sp< SkShader > Make2ConicalInsideCenterReversed(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
static sk_sp< SkShader > Make2ConicalOutsideFlip(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
constexpr SkColor gColors[]
static sk_sp< SkShader > Make2ConicalZeroRadEdgeX(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
constexpr SkScalar gPosClamp[]
static sk_sp< SkShader > Make2ConicalInsideFlip(const SkPoint pts[2], const GradData &data, SkTileMode tm, const SkMatrix &localMatrix)
void set(float x, float y)
std::shared_ptr< const fml::Mapping > data