commit | bd5d7e75c1ef08816bfd8eed52150cd716e15d5b | [log] [tgz] |
---|---|---|
author | fmalita <fmalita@chromium.org> | Fri Jun 26 07:18:24 2015 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Jun 26 07:18:24 2015 -0700 |
tree | 869701a9a9798dc74ccc51e2a14a131d33be7c9e | |
parent | 9730f4a663534009d216c2f6d834bd534dd44a3d [diff] [blame] |
Revert of Revert of added stroking support to GrAALinearizingConvexPathRenderer (patchset #1 id:1 of https://codereview.chromium.org/1212833002/) Reason for revert: Manual roll is in: https://codereview.chromium.org/1212373002 Let's re-land this. Original issue's description: > Revert of added stroking support to GrAALinearizingConvexPathRenderer (patchset #6 id:100001 of https://codereview.chromium.org/1180903006/) > > Reason for revert: > speculative revert to try to fix DEPS roll (layouttests) > > Original issue's description: > > added stroking support to GrAALinearizingConvexPathRenderer > > > > BUG=skia: > > > > Committed: https://skia.googlesource.com/skia/+/2436f191e6602953b32a51cf50f2d7a4e2af90fd > > TBR=bsalomon@google.com,robertphillips@google.com,ethannicholas@google.com > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/9730f4a663534009d216c2f6d834bd534dd44a3d TBR=bsalomon@google.com,robertphillips@google.com,ethannicholas@google.com,reed@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/1209003004
diff --git a/src/core/SkPathPriv.h b/src/core/SkPathPriv.h index 98e50e3..934c730 100644 --- a/src/core/SkPathPriv.h +++ b/src/core/SkPathPriv.h
@@ -55,6 +55,10 @@ return computedDir == dir; } + static bool LastVerbIsClose(const SkPath& path) { + int count = path.countVerbs(); + return count >= 1 && path.fPathRef->verbs()[~(count - 1)] == SkPath::Verb::kClose_Verb; + } }; #endif