blob: b08c315634f6d0c53f4ce83bcaedce2a045647e2 [file] [log] [blame]
Hal Canary385468f2017-02-13 11:03:23 -05001/*
2 * Copyright 2017 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "gm.h"
9#include "SkParsePath.h"
10
11DEF_SIMPLE_GM(crbug_691386, canvas, 256, 256) {
12 SkPath path;
13 if (!SkParsePath::FromSVGString("M -1 0 A 1 1 0 0 0 1 0 Z", &path)) {
14 return;
15 }
16 SkPaint p;
17 p.setStyle(SkPaint::kStroke_Style);
18 p.setStrokeWidth(0.025f);
19 canvas->scale(96.0f, 96.0f);
20 canvas->translate(1.25f, 1.25f);
21 canvas->drawPath(path, p);
22}