Index: src/core/SkPath.cpp |
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp |
index 04c807b64415492aa4b3ee617391a22c2800ea78..9a57deafa428ec8894b881d302d34be1f8efec11 100644 |
--- a/src/core/SkPath.cpp |
+++ b/src/core/SkPath.cpp |
@@ -506,8 +506,8 @@ bool SkPath::isRectContour(bool allowPartial, int* currVerb, const SkPoint** pts |
SkPath::PathAsRect SkPath::asRect(Direction* direction) const { |
SK_COMPILE_ASSERT(0 == kNone_PathAsRect, path_as_rect_mismatch); |
- SK_COMPILE_ASSERT(1 == kStroke_PathAsRect, path_as_rect_mismatch); |
- SK_COMPILE_ASSERT(2 == kFill_PathAsRect, path_as_rect_mismatch); |
+ SK_COMPILE_ASSERT(1 == kFill_PathAsRect, path_as_rect_mismatch); |
+ SK_COMPILE_ASSERT(2 == kStroke_PathAsRect, path_as_rect_mismatch); |
bool isClosed = false; |
return (PathAsRect) (isRect(&isClosed, direction) + isClosed); |
yunchao
2014/02/08 07:10:48
kFill_PathAsRect is added for those non-closed pat
|
} |