aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-04 05:17:10 +0000
committerGravatar mike@reedtribe.org <mike@reedtribe.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-02-04 05:17:10 +0000
commitaac2fb8019282e8933d76462b3bc62bf727e6627 (patch)
treec8ad219f96ad49c59e22622ade30eb9e2db053fd
parent0cf7b824cafb0a25451d94d318006f508684d7d4 (diff)
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
-rw-r--r--include/core/SkPaint.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index a64c89ded4..b63845982f 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -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'