22#define ERR_MSG_ASSERT(COND) \
25 errorMsg->printf("preservefillrule.cpp(%i): assert(%s)", \
27 return DrawResult::kFail; \
43 name += (fBig) ?
"_big" :
"_little";
52 void onDraw(
SkCanvas* canvas)
override {
57 SkPath star7_evenOdd = star7_winding;
65 SkPath star5_evenOdd = star5_winding;
71 paint.setAntiAlias(
true);
90DEF_GM(
return new PreserveFillRuleGM(
true); )
91DEF_GM(
return new PreserveFillRuleGM(
false); )
static GrDirectContext * GrAsDirectContext(GrContext_Base *base)
constexpr SkColor SK_ColorGREEN
constexpr SkColor SK_ColorWHITE
virtual GrRecordingContext * recordingContext() const
void clear(SkColor color)
void drawPath(const SkPath &path, const SkPaint &paint)
static SkMatrix Translate(SkScalar dx, SkScalar dy)
void setFillType(SkPathFillType ft)
void transform(const SkMatrix &matrix, SkPath *dst, SkApplyPerspectiveClip pc=SkApplyPerspectiveClip::kYes) const
PreserveFillRuleGM(bool big)
DEF_SWITCHES_START aot vmservice shared library name
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
bool fAllowPathMaskCaching
static constexpr SkISize Make(int32_t w, int32_t h)
static constexpr SkRect MakeWH(float w, float h)