33 str.
printf(
"complexclip4_%s",
34 fDoAAClip ?
"aa" :
"bw");
72 p.setAntiAlias(fDoAAClip);
127 using INHERITED =
GM;
132DEF_GM(
return new ComplexClip4GM(
false);)
133DEF_GM(
return new ComplexClip4GM(
true);)
constexpr SkColor SK_ColorYELLOW
constexpr SkColor SK_ColorGREEN
static void ResetClip(SkCanvas *canvas)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void translate(SkScalar dx, SkScalar dy)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void androidFramework_setDeviceClipRestriction(const SkIRect &rect)
void rotate(SkScalar degrees)
void clipPath(const SkPath &path, SkClipOp op, bool doAntiAlias)
void clipRRect(const SkRRect &rrect, SkClipOp op, bool doAntiAlias)
static SkPath Polygon(const SkPoint pts[], int count, bool isClosed, SkPathFillType=SkPathFillType::kWinding, bool isVolatile=false)
static SkRRect MakeOval(const SkRect &oval)
void printf(const char format[],...) SK_PRINTF_LIKE(2
void emulateClipPathReplace(SkCanvas *canvas, const SkPath &path, bool aa)
void emulateDeviceRestriction(SkCanvas *canvas, const SkIRect &deviceRestriction)
void onDraw(SkCanvas *canvas) override
void emulateClipRRectReplace(SkCanvas *canvas, const SkRRect &clipRRect, bool aa)
void emulateClipRectReplace(SkCanvas *canvas, const SkRect &clipRect, bool aa)
SkISize getISize() override
SkString getName() const override
ComplexClip4GM(bool aaclip)
static constexpr SkIRect MakeLTRB(int32_t l, int32_t t, int32_t r, int32_t b)
static constexpr SkISize Make(int32_t w, int32_t h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)