Add stroked oval benches.
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
This commit is contained in:
parent
1ce5cef859
commit
ce0ce4fa35
@ -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)); )
|
||||
|
Loading…
Reference in New Issue
Block a user