diff options
author | jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-23 19:14:03 +0000 |
---|---|---|
committer | jvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-23 19:14:03 +0000 |
commit | 190260e7cfbbefc05b80e54dcc1b8b8197643159 (patch) | |
tree | 819c71af2e5af2f581bf0cd924efed1174eeb5ec /bench/RectBench.cpp | |
parent | 8c6a4f24d331503b3eb9a5c918d5876772b9a5ee (diff) |
Add stroked rrect benches.
Review URL: https://codereview.chromium.org/14238017/
git-svn-id: http://skia.googlecode.com/svn/trunk@8832 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/RectBench.cpp')
-rw-r--r-- | bench/RectBench.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bench/RectBench.cpp b/bench/RectBench.cpp index 645f8a8480..2595bd5718 100644 --- a/bench/RectBench.cpp +++ b/bench/RectBench.cpp @@ -119,7 +119,7 @@ protected: class RRectBench : public RectBench { public: - RRectBench(void* param, int shift) : RectBench(param, shift) {} + RRectBench(void* param, int shift, int stroke = 0) : RectBench(param, shift, stroke) {} protected: virtual void drawThisRect(SkCanvas* c, const SkRect& r, const SkPaint& p) { c->drawRoundRect(r, r.width() / 4, r.height() / 4, p); @@ -282,7 +282,9 @@ DEF_BENCH( return SkNEW_ARGS(RectBench, (p, 3, 4)); ) DEF_BENCH( return SkNEW_ARGS(OvalBench, (p, 1)); ) DEF_BENCH( return SkNEW_ARGS(OvalBench, (p, 3)); ) DEF_BENCH( return SkNEW_ARGS(RRectBench, (p, 1)); ) +DEF_BENCH( return SkNEW_ARGS(RRectBench, (p, 1, 4)); ) DEF_BENCH( return SkNEW_ARGS(RRectBench, (p, 3)); ) +DEF_BENCH( return SkNEW_ARGS(RRectBench, (p, 3, 4)); ) DEF_BENCH( return SkNEW_ARGS(PointsBench, (p, SkCanvas::kPoints_PointMode, "points")); ) DEF_BENCH( return SkNEW_ARGS(PointsBench, (p, SkCanvas::kLines_PointMode, "lines")); ) DEF_BENCH( return SkNEW_ARGS(PointsBench, (p, SkCanvas::kPolygon_PointMode, "polygon")); ) |