This exposes our "unknown type" to users, which is a loss of encapsulation.
TBR=robertphillips
http://codereview.appspot.com/6865050/
git-svn-id: http://skia.googlecode.com/svn/trunk@6641
2bbb7eff-a529-9590-31e7-
b0007b416f81
* by type(). The subtypes become progressively less restrictive.
*/
enum Type {
+ // !< Internal indicator that the sub type must be computed.
+ kUnknown_Type = -1,
+
// !< The RR is empty
kEmpty_Type,
SkDEBUGCODE(void validate() const;)
private:
- enum {
- //!< Internal indicator that the sub type must be computed.
- kUnknown_Type = -1
- };
-
SkRect fRect;
// Radii order is UL, UR, LR, LL. Use Corner enum to index into fRadii[]
SkVector fRadii[4];
SkASSERT(!fRect.isEmpty());
SkASSERT(!allRadiiZero && !allRadiiSame && !allCornersSquare);
break;
-#if 0
- // error: case value not in enumerated type 'SkRRect::Type
case kUnknown_Type:
// no limits on this
break;
-#endif
}
}
#endif // SK_DEBUG