1cb93a386Sopenharmony_ci// Copyright 2019 Google LLC.
2cb93a386Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3cb93a386Sopenharmony_ci#include "tools/fiddle/examples.h"
4cb93a386Sopenharmony_ci// HASH=84b2d1c0fc29f1b35e855b6fc6672f9e
5cb93a386Sopenharmony_ciREG_FIDDLE(Path_addPath_2, 256, 80, false, 0) {
6cb93a386Sopenharmony_civoid draw(SkCanvas* canvas) {
7cb93a386Sopenharmony_ci    SkPaint paint;
8cb93a386Sopenharmony_ci    paint.setStyle(SkPaint::kStroke_Style);
9cb93a386Sopenharmony_ci    SkPath dest, path;
10cb93a386Sopenharmony_ci    path.addOval({-80, 20, 0, 60}, SkPathDirection::kCW, 1);
11cb93a386Sopenharmony_ci    for (int i = 0; i < 2; i++) {
12cb93a386Sopenharmony_ci        dest.addPath(path, SkPath::kExtend_AddPathMode);
13cb93a386Sopenharmony_ci        dest.offset(100, 0);
14cb93a386Sopenharmony_ci    }
15cb93a386Sopenharmony_ci    canvas->drawPath(dest, paint);
16cb93a386Sopenharmony_ci}
17cb93a386Sopenharmony_ci}  // END FIDDLE
18