diff options
author | caryclark <caryclark@google.com> | 2015-05-18 12:56:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-18 12:56:58 -0700 |
commit | 4e1a4c9399b8bb0897218f3ec10c254d3bb97463 (patch) | |
tree | 8d7dc01783988b530486faffd2317036eb41cfa6 /tests/PathOpsExtendedTest.h | |
parent | 4e149c09bcf1f02e3f31cd8e7bbe794a00090948 (diff) |
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
Diffstat (limited to 'tests/PathOpsExtendedTest.h')
-rw-r--r-- | tests/PathOpsExtendedTest.h | 7 |
1 files changed, 7 insertions, 0 deletions
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, |