From b85a0aab6905af8b329539b7573a7555b727d5e5 Mon Sep 17 00:00:00 2001 From: cdalton Date: Mon, 21 Jul 2014 15:32:44 -0700 Subject: 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 --- include/core/SkStrokeRec.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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; } -- cgit v1.2.3