diff options
Diffstat (limited to 'bench')
-rw-r--r-- | bench/PathBench.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bench/PathBench.cpp b/bench/PathBench.cpp index 1bd0d891e9..4a69d5a540 100644 --- a/bench/PathBench.cpp +++ b/bench/PathBench.cpp @@ -671,7 +671,7 @@ private: typedef SkBenchmark INHERITED; }; -// Chrome creates its own round rects with each corner possibly being different +// Chrome creates its own round rects with each corner possibly being different class ArbRoundRectBench : public SkBenchmark { protected: SkString fName; @@ -689,8 +689,8 @@ protected: return fName.c_str(); } - static void add_corner_arc(SkPath* path, const SkRect& rect, - SkScalar xIn, SkScalar yIn, + static void add_corner_arc(SkPath* path, const SkRect& rect, + SkScalar xIn, SkScalar yIn, int startAngle) { @@ -719,7 +719,7 @@ protected: path->arcTo(arcRect, SkIntToScalar(startAngle), SkIntToScalar(90), false); } - static void make_arb_round_rect(SkPath* path, const SkRect& r, + static void make_arb_round_rect(SkPath* path, const SkRect& r, SkScalar xCorner, SkScalar yCorner) { // we are lazy here and use the same x & y for each corner add_corner_arc(path, r, xCorner, yCorner, 270); |