From 4e1a4c9399b8bb0897218f3ec10c254d3bb97463 Mon Sep 17 00:00:00 2001 From: caryclark Date: Mon, 18 May 2015 12:56:57 -0700 Subject: fix builder winding again Record the nesting level when finding the edge winding contribution so that inner edges can be reversed as needed. R=fmalita@chromium.org BUG=skia:3838 Review URL: https://codereview.chromium.org/1140383002 --- tests/PathOpsExtendedTest.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/PathOpsExtendedTest.h') diff --git a/tests/PathOpsExtendedTest.h b/tests/PathOpsExtendedTest.h index a604761a7d..c4baa63b51 100644 --- a/tests/PathOpsExtendedTest.h +++ b/tests/PathOpsExtendedTest.h @@ -29,6 +29,13 @@ struct TestDesc { //extern int comparePaths(const SkPath& one, const SkPath& two); extern int comparePaths(skiatest::Reporter* reporter, const char* filename, const SkPath& one, const SkPath& two, SkBitmap& bitmap); + +inline int comparePaths(skiatest::Reporter* reporter, const char* filename, + const SkPath& one, const SkPath& two) { + SkBitmap bitmap; + return comparePaths(reporter, filename, one, two, bitmap); +} + extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths); extern void showOp(const SkPathOp op); extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, -- cgit v1.2.3