diff options
author | Hal Canary <halcanary@google.com> | 2017-05-15 13:35:35 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-16 12:59:11 +0000 |
commit | 23e474cb7331c5d2389d97dce2d9e5c93c58f39f (patch) | |
tree | 95314f82ba240a5e5f5891d78489b2f4c9364b76 /gm/beziereffects.cpp | |
parent | 03d1e59bdac65cc1dd606b60e6565eb6860419f9 (diff) |
SkCanvas: Helpers for draw{Point,Line,Circle}
Change-Id: Ie9c7d3b8f01aee435563b23b7d27f098f07dd287
Reviewed-on: https://skia-review.googlesource.com/16909
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'gm/beziereffects.cpp')
-rw-r--r-- | gm/beziereffects.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp index c67018d2af..d3f1965d4f 100644 --- a/gm/beziereffects.cpp +++ b/gm/beziereffects.cpp @@ -160,9 +160,9 @@ protected: SkPaint ctrlPtPaint; ctrlPtPaint.setColor(rand.nextU() | 0xFF000000); - canvas->drawCircle(controlPts[0].fX, controlPts[0].fY, 8.f, ctrlPtPaint); + canvas->drawCircle(controlPts[0], 8.f, ctrlPtPaint); for (int i = 1; i < 4; ++i) { - canvas->drawCircle(controlPts[i].fX, controlPts[i].fY, 6.f, ctrlPtPaint); + canvas->drawCircle(controlPts[i], 6.f, ctrlPtPaint); } SkPaint polyPaint; @@ -178,7 +178,7 @@ protected: SkPoint* pts = chopped + 3 * c; for (int i = 0; i < 4; ++i) { - canvas->drawCircle(pts[i].fX, pts[i].fY, 3.f, choppedPtPaint); + canvas->drawCircle(pts[i], 3.f, choppedPtPaint); } SkRect bounds; @@ -299,7 +299,7 @@ protected: SkPaint ctrlPtPaint; ctrlPtPaint.setColor(rand.nextU() | 0xFF000000); for (int i = 0; i < 3; ++i) { - canvas->drawCircle(controlPts[i].fX, controlPts[i].fY, 6.f, ctrlPtPaint); + canvas->drawCircle(controlPts[i], 6.f, ctrlPtPaint); } SkPaint polyPaint; @@ -314,7 +314,7 @@ protected: for (int c = 0; c < cnt; ++c) { SkPoint* pts = dst[c].fPts; for (int i = 0; i < 3; ++i) { - canvas->drawCircle(pts[i].fX, pts[i].fY, 3.f, choppedPtPaint); + canvas->drawCircle(pts[i], 3.f, choppedPtPaint); } SkRect bounds; @@ -516,7 +516,7 @@ protected: SkPaint ctrlPtPaint; ctrlPtPaint.setColor(rand.nextU() | 0xFF000000); for (int i = 0; i < 3; ++i) { - canvas->drawCircle(controlPts[i].fX, controlPts[i].fY, 6.f, ctrlPtPaint); + canvas->drawCircle(controlPts[i], 6.f, ctrlPtPaint); } SkPaint polyPaint; @@ -532,7 +532,7 @@ protected: SkPoint* pts = chopped + 2 * c; for (int i = 0; i < 3; ++i) { - canvas->drawCircle(pts[i].fX, pts[i].fY, 3.f, choppedPtPaint); + canvas->drawCircle(pts[i], 3.f, choppedPtPaint); } SkRect bounds; |