summaryrefslogtreecommitdiff
path: root/chromium/third_party/skia/gm/patharcto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/skia/gm/patharcto.cpp')
-rw-r--r--chromium/third_party/skia/gm/patharcto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/third_party/skia/gm/patharcto.cpp b/chromium/third_party/skia/gm/patharcto.cpp
index 8a7415bdccb..20d12369bbc 100644
--- a/chromium/third_party/skia/gm/patharcto.cpp
+++ b/chromium/third_party/skia/gm/patharcto.cpp
@@ -75,7 +75,7 @@ DEF_SIMPLE_GM(path_append_extend, canvas, 400, 400) {
{ 10, 50 }, {30, 70}, {50, 50},
};
- const SkPath path1 = SkPath::Polygon(p1, SK_ARRAY_COUNT(p1), false);
+ const SkPath path1 = SkPath::Polygon(p1, std::size(p1), false);
SkPaint paint;
paint.setStroke(true);
@@ -92,7 +92,7 @@ DEF_SIMPLE_GM(path_append_extend, canvas, 400, 400) {
for (auto proc : {old_school_polygon, new_school_polygon}) {
canvas->save();
- SkPath path0 = proc(p0, SK_ARRAY_COUNT(p0), isClosed);
+ SkPath path0 = proc(p0, std::size(p0), isClosed);
canvas->drawPath(path0, paint);
canvas->drawPath(path1, paint);