aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkStroke.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkStroke.h')
-rw-r--r--src/core/SkStroke.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/SkStroke.h b/src/core/SkStroke.h
index 48805165cb..33a7ecba5c 100644
--- a/src/core/SkStroke.h
+++ b/src/core/SkStroke.h
@@ -32,6 +32,7 @@ public:
void setMiterLimit(SkScalar);
void setWidth(SkScalar);
+ SkScalar getWidthIfStroked() const { return fDoFill ? -SK_Scalar1 : fWidth; }
bool getDoFill() const { return SkToBool(fDoFill); }
void setDoFill(bool doFill) { fDoFill = SkToU8(doFill); }