26 SkISize getISize()
override {
return {100, 100}; }
28 void onDraw(
SkCanvas* canvas)
override {
29 constexpr SkScalar kOffset = 35000.0f;
30 constexpr SkScalar kExtents = 1000.0f;
52 canvas->
translate(kExtents / 2, -(kOffset - kExtents / 2));
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
void translate(SkScalar dx, SkScalar dy)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void clipPath(const SkPath &path, SkClipOp op, bool doAntiAlias)
static SkPath RRect(const SkRRect &, SkPathDirection dir=SkPathDirection::kCW)
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
virtual SkRect cullRect() const =0
virtual void playback(SkCanvas *canvas, AbortCallback *callback=nullptr) const =0
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
constexpr float height() const
constexpr float width() const