Index: src/core/SkPathRef.h |
diff --git a/src/core/SkPathRef.h b/src/core/SkPathRef.h |
index b6700392912def34c61d5c1cc00e7f541f49e060..dc25679dc77d157deacc4a733e1d80900948ea6b 100644 |
--- a/src/core/SkPathRef.h |
+++ b/src/core/SkPathRef.h |
@@ -470,17 +470,22 @@ private: |
case SkPath::kLine_Verb: |
pCnt = 1; |
break; |
- case SkPath::kConic_Verb: |
case SkPath::kQuad_Verb: |
+ // fall through |
+ case SkPath::kConic_Verb: |
pCnt = 2; |
break; |
case SkPath::kCubic_Verb: |
pCnt = 3; |
break; |
+ case SkPath::kClose_Verb: |
+ pCnt = 0; |
+ break; |
case SkPath::kDone_Verb: |
SkASSERT(!"growForVerb called for kDone"); |
// fall through |
- case SkPath::kClose_Verb: |
+ default: |
+ SkASSERT(!"default is not reached"); |
pCnt = 0; |
dshwang
2013/07/03 07:50:26
How about this change.
now case statements are sor
|
} |
size_t space = sizeof(uint8_t) + pCnt * sizeof (SkPoint); |