Add stroked oval benches.
authorjvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 7 May 2013 13:03:21 +0000 (13:03 +0000)
committerjvanverth@google.com <jvanverth@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 7 May 2013 13:03:21 +0000 (13:03 +0000)
Reviewed by: bsalomon
Review URL: https://codereview.chromium.org/14849011/

git-svn-id: http://skia.googlecode.com/svn/trunk@9029 2bbb7eff-a529-9590-31e7-b0007b416f81

bench/RectBench.cpp

index d273c0040935c941f8892d5a2bfa67a5da503d62..99ff0a94f1befdb953a70c9d2b32a002ca40ac64 100644 (file)
@@ -109,7 +109,7 @@ private:
 
 class OvalBench : public RectBench {
 public:
-    OvalBench(void* param, int shift) : RectBench(param, shift) {}
+    OvalBench(void* param, int shift, int stroke = 0) : RectBench(param, shift, stroke) {}
 protected:
     virtual void drawThisRect(SkCanvas* c, const SkRect& r, const SkPaint& p) {
         c->drawOval(r, p);
@@ -299,6 +299,8 @@ DEF_BENCH( return SkNEW_ARGS(RectBench, (p, 3)); )
 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(OvalBench, (p, 1, 4)); )
+DEF_BENCH( return SkNEW_ARGS(OvalBench, (p, 3, 4)); )
 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)); )