aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-07-06 11:54:59 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-06 11:54:59 -0700
commita7d85ba138ee09739defbd277b04c479fdef82a6 (patch)
treeae5af2c5d489a22c9bb4331238cdd9fa6164ccd0 /include
parent52fa668dc589501f5e48a7c5b1958882b86ff496 (diff)
Add gm that tests shaded stroked rectangles.
Fix GPU handling of previously untested cases. Move rect->path fallback from SkGpuDevice to GrDrawContext. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2125663003 Review-Url: https://codereview.chromium.org/2125663003
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPaint.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index 293ffedc12..c0f1f3eec8 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -409,9 +409,10 @@ public:
kRound_Cap, //!< begin/end contours with a semi-circle extension
kSquare_Cap, //!< begin/end contours with a half square extension
- kCapCount,
+ kLast_Cap = kSquare_Cap,
kDefault_Cap = kButt_Cap
};
+ static constexpr int kCapCount = kLast_Cap + 1;
/** Join enum specifies the settings for the paint's strokejoin. This is
the treatment that is applied to corners in paths and rectangles.
@@ -421,9 +422,10 @@ public:
kRound_Join, //!< connect path segments with a round join
kBevel_Join, //!< connect path segments with a flat bevel join
- kJoinCount,
+ kLast_Join = kBevel_Join,
kDefault_Join = kMiter_Join
};
+ static constexpr int kJoinCount = kLast_Join + 1;
/** Return the paint's stroke cap type, controlling how the start and end
of stroked lines and paths are treated.