33 return SkString(
"strokerects_rotated");
50 r->
offset(-
w/2 + woffset, -
h/2 + hoffset);
61 for (
int y = 0;
y < 2;
y++) {
63 for (
int x = 0;
x < 2;
x++) {
74 for (
int i = 0;
i <
N;
i++) {
89DEF_GM(
return new StrokeRectsGM(
false); )
90DEF_GM(
return new StrokeRectsGM(
true); )
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void translate(SkScalar dx, SkScalar dy)
void rotate(SkScalar degrees)
@ kStroke_Style
set to stroke geometry
StrokeRectsGM(bool rotated)
SkString getName() const override
void onDraw(SkCanvas *canvas) override
static void rnd_rect(SkRect *r, SkRandom &rand)
SkISize getISize() override
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
static constexpr SkISize Make(int32_t w, int32_t h)
void setXYWH(float x, float y, float width, float height)
void offset(float dx, float dy)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)