crbug_788500.cpp 574 B

1234567891011121314151617181920212223
  1. /*
  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. #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(crbug_788500, canvas, 300, 300) {
  12. SkPath path;
  13. path.setFillType(SkPath::kEvenOdd_FillType);
  14. path.moveTo(0, 0);
  15. path.moveTo(245.5f, 98.5f);
  16. path.cubicTo(245.5f, 98.5f, 242, 78, 260, 75);
  17. SkPaint paint;
  18. paint.setAntiAlias(true);
  19. canvas->drawPath(path, paint);
  20. }