diff options
Diffstat (limited to 'chromium/third_party/skia/gm/stroketext.cpp')
-rw-r--r-- | chromium/third_party/skia/gm/stroketext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/third_party/skia/gm/stroketext.cpp b/chromium/third_party/skia/gm/stroketext.cpp index 98e670a9ff6..f80e15c90c8 100644 --- a/chromium/third_party/skia/gm/stroketext.cpp +++ b/chromium/third_party/skia/gm/stroketext.cpp @@ -72,7 +72,7 @@ static void draw_text_set(SkCanvas* canvas, const SkPaint& paint, const SkFont& canvas->translate(200, 0); SkPaint p(paint); - p.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), phase)); + p.setPathEffect(SkDashPathEffect::Make(intervals, std::size(intervals), phase)); draw_text_stroked(canvas, p, font, 10); } @@ -110,7 +110,7 @@ DEF_SIMPLE_GM_CAN_FAIL(stroketext_native, canvas, msg, 650, 420) { { SkSetFourByteTag('w','g','h','t'), 721.0f }, }; SkFontArguments params; - params.setVariationDesignPosition({position, SK_ARRAY_COUNT(position)}); + params.setVariationDesignPosition({position, std::size(position)}); return SkFontMgr::RefDefault()->makeFromStream(std::move(variableStream), params); }(); |