Index: src/core/SkStroke.h |
diff --git a/src/core/SkStroke.h b/src/core/SkStroke.h |
index a6a9f083311d7b73b7128ee9ffbc7a18d8fad762..cb329399a91952e67d0f097e59825d5890f8bfc6 100644 |
--- a/src/core/SkStroke.h |
+++ b/src/core/SkStroke.h |
@@ -11,6 +11,19 @@ |
#include "SkPath.h" |
#include "SkPoint.h" |
#include "SkPaint.h" |
+#include "SkStrokerPriv.h" |
+ |
+// set to 1 to use experimental outset stroking with quads |
+#ifndef QUAD_STROKE_APPROXIMATION |
+#define QUAD_STROKE_APPROXIMATION 0 |
+#endif |
+ |
+#if QUAD_STROKE_APPROXIMATION && defined(SK_DEBUG) |
+extern bool gDebugStrokerErrorSet; |
+extern SkScalar gDebugStrokerError; |
+ |
+extern int gMaxRecursion[]; |
+#endif |
/** \class SkStroke |
SkStroke is the utility class that constructs paths by stroking |
@@ -30,6 +43,9 @@ public: |
SkPaint::Join getJoin() const { return (SkPaint::Join)fJoin; } |
void setJoin(SkPaint::Join); |
+#if QUAD_STROKE_APPROXIMATION |
+ void setError(SkScalar); |
+#endif |
void setMiterLimit(SkScalar); |
void setWidth(SkScalar); |
@@ -46,6 +62,9 @@ public: |
//////////////////////////////////////////////////////////////// |
private: |
+#if QUAD_STROKE_APPROXIMATION |
+ SkScalar fError; |
+#endif |
SkScalar fWidth, fMiterLimit; |
uint8_t fCap, fJoin; |
SkBool8 fDoFill; |