aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/bug615686.cpp
blob: bd78b1af6672449e772bda4ff131940641c81184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Copyright 2016 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "gm.h"
#include "SkPath.h"

DEF_SIMPLE_GM(bug615686, canvas, 250, 250) {
    SkPaint p;
    p.setAntiAlias(true);
    p.setStyle(SkPaint::kStroke_Style);
    p.setStrokeWidth(20);
    SkPath path;
    path.moveTo(0, 0);
    path.cubicTo(200, 200, 0, 200, 200, 0);
    canvas->drawPath(path, p);
}