move kStyleCount out of Style enum, and into its own, to avoid

1. someone passing kStyleCount as a parameter
2. warnings about not handling all enum values in a switch

We should probably move to remove kCountFoo from all of our enums for these reasons.



git-svn-id: http://skia.googlecode.com/svn/trunk@7532 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
mike@reedtribe.org 2013-02-04 05:17:10 +00:00
parent 0cf7b824ca
commit aac2fb8019

View File

@ -291,8 +291,9 @@ public:
kFill_Style, //!< fill the geometry
kStroke_Style, //!< stroke the geometry
kStrokeAndFill_Style, //!< fill and stroke the geometry
kStyleCount
};
enum {
kStyleCount = kStrokeAndFill_Style + 1
};
/** Return the paint's style, used for controlling how primitives'