bug615686.cpp 536 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright 2016 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. #include "gm/gm.h"
  8. #include "include/core/SkCanvas.h"
  9. #include "include/core/SkPaint.h"
  10. #include "include/core/SkPath.h"
  11. DEF_SIMPLE_GM(bug615686, canvas, 250, 250) {
  12. SkPaint p;
  13. p.setAntiAlias(true);
  14. p.setStyle(SkPaint::kStroke_Style);
  15. p.setStrokeWidth(20);
  16. SkPath path;
  17. path.moveTo(0, 0);
  18. path.cubicTo(200, 200, 0, 200, 200, 0);
  19. canvas->drawPath(path, p);
  20. }