blob: 25755accc43eab3ca4c5f72b920374f314fdf29e [file] [log] [blame]
caryclarkfeff7d22014-10-09 05:36:03 -07001/*
2 * Copyright 2014 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"
bungemand3ebb482015-08-05 13:57:49 -07009#include "SkPath.h"
caryclarkfeff7d22014-10-09 05:36:03 -070010
caryclarkfeff7d22014-10-09 05:36:03 -070011// this draws a small arc scaled up
12// see https://code.google.com/p/chromium/issues/detail?id=102411
13// and https://code.google.com/p/skia/issues/detail?id=2769
halcanary2a243382015-09-09 08:16:41 -070014DEF_SIMPLE_GM(smallarc, canvas, 762, 762) {
caryclarkfeff7d22014-10-09 05:36:03 -070015 SkPaint p;
16 p.setColor(SK_ColorRED);
17 p.setAntiAlias(true);
18 p.setStyle(SkPaint::kStroke_Style);
19 p.setStrokeWidth(120);
20
21 SkPath path;
22 path.moveTo(75, 0);
23 path.cubicTo(33.5, 0, 0, 33.5, 0, 75);
24
25 canvas->translate(-400, -400);
26 canvas->scale(8, 8);
27 canvas->drawPath(path, p);
caryclarkfeff7d22014-10-09 05:36:03 -070028}