46 return "Clear-Partial";
48 return "Clear-Complex";
73 sdc->testingOnly_SetPreserveOpsOnFullClear();
76 for (
int i = 0;
i < loops;
i++) {
96 canvas->
drawRect(kInterruptRect, interruptPaint);
static sk_sp< SkShader > make_shader()
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorWHITE
const char * onGetName() override
void onDraw(int loops, SkCanvas *canvas) override
ClearBench(ClearType type)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void clear(SkColor color)
void clipRRect(const SkRRect &rrect, SkClipOp op, bool doAntiAlias)
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
void setShader(sk_sp< SkShader > shader)
static SkRRect MakeRectXY(const SkRect &rect, SkScalar xRad, SkScalar yRad)
SurfaceDrawContext * TopDeviceSurfaceDrawContext(const SkCanvas *canvas)
static constexpr SkPoint kPts[kPtsCount]
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)