17 {
19 static constexpr int kSteps = 4;
20 int n = 1;
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) {
26 }
27 }
28 }
29
32
33 canvas->rotate(25.f, 50.f, 50.f);
34 canvas->clipRegion(region);
37 canvas->drawPaint(red);
38 canvas->restore();
39}
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
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)