Chromium Code Reviews| Index: src/core/SkPathPriv.h |
| diff --git a/src/core/SkPathPriv.h b/src/core/SkPathPriv.h |
| index 98e50e302589e788d2fb48d1c00c72606ce640ca..934c730660427b6088a1f9681d2cee803c3dc096 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 |