aboutsummaryrefslogtreecommitdiffstats
path: root/samplecode/SamplePathClip.cpp
diff options
context:
space:
mode:
authorHal Canary <halcanary@google.com>2017-05-15 13:35:35 -0400
committerSkia Commit-Bot <skia-commit-bot@chromium.org>2017-05-16 12:59:11 +0000
commit23e474cb7331c5d2389d97dce2d9e5c93c58f39f (patch)
tree95314f82ba240a5e5f5891d78489b2f4c9364b76 /samplecode/SamplePathClip.cpp
parent03d1e59bdac65cc1dd606b60e6565eb6860419f9 (diff)
downloadplatform_external_skqp-23e474cb7331c5d2389d97dce2d9e5c93c58f39f.tar.gz
platform_external_skqp-23e474cb7331c5d2389d97dce2d9e5c93c58f39f.tar.bz2
platform_external_skqp-23e474cb7331c5d2389d97dce2d9e5c93c58f39f.zip
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 'samplecode/SamplePathClip.cpp')
-rw-r--r--samplecode/SamplePathClip.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SamplePathClip.cpp b/samplecode/SamplePathClip.cpp
index b425884ebe..5fdaeedb55 100644
--- a/samplecode/SamplePathClip.cpp
+++ b/samplecode/SamplePathClip.cpp
@@ -202,7 +202,7 @@ protected:
const int j = (i + 1) % N;
p.setColor(fEdgeColor[i]);
p.setAlpha(0x88);
- canvas->drawLine(fPoly[i].x(), fPoly[i].y(), fPoly[j].x(), fPoly[j].y(), p);
+ canvas->drawLine(fPoly[i], fPoly[j], p);
}
p.setStyle(SkPaint::kFill_Style);