2 * Copyright 2014 Google Inc.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
12 // this draws a small arc scaled up
13 // see https://code.google.com/p/chromium/issues/detail?id=102411
14 // and https://code.google.com/p/skia/issues/detail?id=2769
15 class SmallArcGM : public GM {
22 SkString onShortName() override {
23 return SkString("smallarc");
26 SkISize onISize() override {
27 return SkISize::Make(762, 762);
30 void onDraw(SkCanvas* canvas) override {
32 p.setColor(SK_ColorRED);
34 p.setStyle(SkPaint::kStroke_Style);
35 p.setStrokeWidth(120);
39 path.cubicTo(33.5, 0, 0, 33.5, 0, 75);
41 canvas->translate(-400, -400);
43 canvas->drawPath(path, p);
50 //////////////////////////////////////////////////////////////////////////////
52 DEF_GM( return SkNEW(SmallArcGM); )