skia2/gm/crbug_788500.cpp
Brian Salomon 29f9ed4dcc Revert "Revert "Make PathGeoBuilder use consistent iterators.""
This reverts commit b451321324.

Bug: chromium:788500
Change-Id: I6028b20770009b703f76ce2d9b451c561eaa705a
Reviewed-on: https://skia-review.googlesource.com/77582
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
2017-11-29 16:18:45 +00:00

24 lines
532 B
C++

/*
* 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);
}