Chromium Code Reviews| Index: src/core/SkPathRef.cpp |
| diff --git a/src/core/SkPathRef.cpp b/src/core/SkPathRef.cpp |
| index 12429aecfcc889b3244ab03c40dbfea423464780..acf72d98589dab3a42ee2b753281d5bebe1892a5 100644 |
| --- a/src/core/SkPathRef.cpp |
| +++ b/src/core/SkPathRef.cpp |
| @@ -573,6 +573,11 @@ uint8_t SkPathRef::Iter::next(SkPoint pts[4]) { |
| return (uint8_t) verb; |
| } |
| +uint8_t SkPathRef::Iter::peek() const { |
| + const uint8_t* next = fVerbs - 1; |
|
reed1
2015/12/08 16:59:02
I wonder if this should just SkASSERT if we read p
caryclark
2015/12/08 19:59:39
I'll try the assert. I thought that if fVerbs is p
|
| + return next <= fVerbStop ? (uint8_t) SkPath::kDone_Verb : *next; |
| +} |
| + |
| #ifdef SK_DEBUG |
| void SkPathRef::validate() const { |
| this->INHERITED::validate(); |