| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkPathPriv_DEFINED | 8 #ifndef SkPathPriv_DEFINED |
| 9 #define SkPathPriv_DEFINED | 9 #define SkPathPriv_DEFINED |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 return false; | 76 return false; |
| 77 default: break; | 77 default: break; |
| 78 } | 78 } |
| 79 } | 79 } |
| 80 return false; | 80 return false; |
| 81 } | 81 } |
| 82 | 82 |
| 83 static void AddGenIDChangeListener(const SkPath& path, SkPathRef::GenIDChang
eListener* listener) { | 83 static void AddGenIDChangeListener(const SkPath& path, SkPathRef::GenIDChang
eListener* listener) { |
| 84 path.fPathRef->addGenIDChangeListener(listener); | 84 path.fPathRef->addGenIDChangeListener(listener); |
| 85 } | 85 } |
| 86 |
| 87 /** |
| 88 * This returns true for a rect that begins and ends at the same corner and
has either a move |
| 89 * followed by four lines or a move followed by 3 lines and a close. None of
the parameters are |
| 90 * optional. This does not permit degenerate line or point rectangles. |
| 91 */ |
| 92 static bool IsSimpleClosedRect(const SkPath& path, SkRect* rect, SkPath::Dir
ection* direction, |
| 93 unsigned* start); |
| 86 }; | 94 }; |
| 87 | 95 |
| 88 #endif | 96 #endif |
| OLD | NEW |