aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar cdalton <cdalton@nvidia.com>2014-07-21 15:32:44 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-21 15:32:44 -0700
commitb85a0aab6905af8b329539b7573a7555b727d5e5 (patch)
tree9e178f1cbd5c77cc3a522c54b529b50267d89e01 /include/core
parentdcabb05113a732636691abc16d643a091336aea5 (diff)
Add a GrPathRange class
Adds a GrPathRange object that represents a range of paths on the gpu. Updates GrDrawTarget::drawPaths and supporting code to use GrPathRange instead of an array of GrPath objects. Change-Id: I67845f3893cd4d955db947d699aa3733cbb081e0 BUG=skia: R=bsalomon@google.com, jvanverth@google.com, kkinnunen@nvidia.com Author: cdalton@nvidia.com Review URL: https://codereview.chromium.org/400713003
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkStrokeRec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkStrokeRec.h b/include/core/SkStrokeRec.h
index 42bed8cbe7..0c5892f625 100644
--- a/include/core/SkStrokeRec.h
+++ b/include/core/SkStrokeRec.h
@@ -30,6 +30,9 @@ public:
kStroke_Style,
kStrokeAndFill_Style
};
+ enum {
+ kStyleCount = kStrokeAndFill_Style + 1
+ };
Style getStyle() const;
SkScalar getWidth() const { return fWidth; }