From 9c8a16bb1ef5b6663c7b2c98fc2ec7f6499f72a8 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Tue, 28 Nov 2017 13:39:10 -0500 Subject: Make PathGeoBuilder use consistent iterators. Previously it used a degenerate consuming iterator to determine the whether there were multiple contours. This was inconsistent with the tessellating step. Bug: chromium:788500 Change-Id: I3938c69cf40bc551acdb8d5fa9b54d2c96e2a460 Reviewed-on: https://skia-review.googlesource.com/76961 Reviewed-by: Brian Osman Commit-Queue: Brian Salomon --- gm/crbug_788500.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 gm/crbug_788500.cpp (limited to 'gm/crbug_788500.cpp') diff --git a/gm/crbug_788500.cpp b/gm/crbug_788500.cpp new file mode 100644 index 0000000000..ba14673701 --- /dev/null +++ b/gm/crbug_788500.cpp @@ -0,0 +1,23 @@ +/* + * Copyright 2017 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "SkCanvas.h" +#include "SkPaint.h" +#include "SkPath.h" +#include "gm.h" + +DEF_SIMPLE_GM(crbug_788500, canvas, 300, 300) { + SkPath path; + path.setFillType(SkPath::kEvenOdd_FillType); + path.moveTo(0, 0); + path.moveTo(245.5f, 98.5f); + path.cubicTo(245.5f, 98.5f, 242, 78, 260, 75); + + SkPaint paint; + paint.setAntiAlias(true); + canvas->drawPath(path, paint); +} -- cgit v1.2.3