14static constexpr int kSize = 3*3*3*3*3;
19 static constexpr int kSteps = 4;
22 for (
int i = 0;
i < kSteps; ++
i, n*=3,
s/=3.f) {
23 for (
int x = 0;
x < n; ++
x) {
24 for (
int y = 0;
y < n; ++
y) {
33 canvas->rotate(25.f, 50.f, 50.f);
34 canvas->clipRegion(
region);
37 canvas->drawPaint(red);
constexpr SkColor SK_ColorRED
void setColor(SkColor color)
void translate(int dx, int dy)
@ kUnion_Op
target unioned with operand
bool op(const SkIRect &rect, Op op)
static constexpr int kTrans
static constexpr int kSize
DEF_SIMPLE_GM(clip_sierpinski_region, canvas, 2 *kTrans+kSize, 2 *kTrans+kSize)
ClipOpAndAA opAA SkRegion region
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)