19 const char* onGetName()
override {
return "clip_overhead_recording"; }
22 void onDraw(
int loops,
SkCanvas*)
override {
25 for (
int loop = 0; loop < loops; loop++) {
31 for (
int i = 0;
i < 1000;
i++) {
34 canvas->
clipRect({10,10, 1000, 1000});
ClipOverheadRecordingBench()
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void translate(SkScalar dx, SkScalar dy)
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkPicture > finishRecordingAsPicture()
void setOval(const SkRect &oval)