18#if defined(SK_GRAPHITE)
40 ctxOptions->fMaxTextureAtlasSize = fMaxAtlasSize;
43#if defined(SK_GRAPHITE)
46 options->fOptionsPriv->fMaxTextureAtlasSize = fMaxAtlasSize;
61 .
cubicTo(-50, -20, 50, -20, 50, 40)
62 .
cubicTo(20, 0, -20, 0, -50, 20);
64 for (
int i = 0; i < 4; ++i) {
75 path.setIsVolatile(
true);
82 const int fMaxAtlasSize;
85DEF_GM(
return new ManyPathAtlasesGM(128); )
86DEF_GM(
return new ManyPathAtlasesGM(2048); )
static GrDirectContext * GrAsDirectContext(GrContext_Base *base)
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
SK_API SkString static SkString SkStringPrintf()
virtual GrRecordingContext * recordingContext() const
void clear(SkColor color)
void clipPath(const SkPath &path, SkClipOp op, bool doAntiAlias)
void drawPath(const SkPath &path, const SkPaint &paint)
static SkMatrix RotateDeg(SkScalar deg)
static SkMatrix Translate(SkScalar dx, SkScalar dy)
void setAntiAlias(bool aa)
void setColor4f(const SkColor4f &color, SkColorSpace *colorSpace=nullptr)
SkPath & moveTo(SkScalar x, SkScalar y)
SkPath & lineTo(SkScalar x, SkScalar y)
SkPath & setIsVolatile(bool isVolatile)
SkPath & cubicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y3)
void transform(const SkMatrix &matrix, SkPath *dst, SkApplyPerspectiveClip pc=SkApplyPerspectiveClip::kYes) const
virtual void modifyGraphiteContextOptions(skgpu::graphite::ContextOptions *) const
void onDraw(SkCanvas *canvas) override
void modifyGrContextOptions(GrContextOptions *ctxOptions) override
SkString getName() const override
ManyPathAtlasesGM(int maxAtlasSize)
SkISize getISize() override
constexpr SkColor4f kYellow
static constexpr SkISize Make(int32_t w, int32_t h)