зеркало из https://github.com/mozilla/moz-skia.git
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
This commit is contained in:
Родитель
8c6a4f24d3
Коммит
190260e7cf
|
@ -119,7 +119,7 @@ protected:
|
||||||
|
|
||||||
class RRectBench : public RectBench {
|
class RRectBench : public RectBench {
|
||||||
public:
|
public:
|
||||||
RRectBench(void* param, int shift) : RectBench(param, shift) {}
|
RRectBench(void* param, int shift, int stroke = 0) : RectBench(param, shift, stroke) {}
|
||||||
protected:
|
protected:
|
||||||
virtual void drawThisRect(SkCanvas* c, const SkRect& r, const SkPaint& p) {
|
virtual void drawThisRect(SkCanvas* c, const SkRect& r, const SkPaint& p) {
|
||||||
c->drawRoundRect(r, r.width() / 4, r.height() / 4, 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, 1)); )
|
||||||
DEF_BENCH( return SkNEW_ARGS(OvalBench, (p, 3)); )
|
DEF_BENCH( return SkNEW_ARGS(OvalBench, (p, 3)); )
|
||||||
DEF_BENCH( return SkNEW_ARGS(RRectBench, (p, 1)); )
|
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)); )
|
||||||
|
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::kPoints_PointMode, "points")); )
|
||||||
DEF_BENCH( return SkNEW_ARGS(PointsBench, (p, SkCanvas::kLines_PointMode, "lines")); )
|
DEF_BENCH( return SkNEW_ARGS(PointsBench, (p, SkCanvas::kLines_PointMode, "lines")); )
|
||||||
DEF_BENCH( return SkNEW_ARGS(PointsBench, (p, SkCanvas::kPolygon_PointMode, "polygon")); )
|
DEF_BENCH( return SkNEW_ARGS(PointsBench, (p, SkCanvas::kPolygon_PointMode, "polygon")); )
|
||||||
|
|
Загрузка…
Ссылка в новой задаче