aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkStroke.h
diff options
context:
space:
mode:
authorGravatar sugoi@google.com <sugoi@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-06 20:13:11 +0000
committerGravatar sugoi@google.com <sugoi@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-06 20:13:11 +0000
commit12b4e27ae1a29460e91a59f38122483e1faec697 (patch)
treeed783f409c707e748cd0db8c635a6e97d328886d /src/core/SkStroke.h
parentdf6fe603a592be6495a61b4ad2e8b8fad452c2ac (diff)
As part of preliminary groundwork for a chromium fix, this changelist is deprecating GrPathFill so that SkPath::FillType is used everywhere in order to remove some code duplication between Skia and Ganesh.
BUG=chromium:135111 TEST=Try path rendering tests from the gm Review URL: https://codereview.appspot.com/6875058 git-svn-id: http://skia.googlecode.com/svn/trunk@6693 2bbb7eff-a529-9590-31e7-b0007b416f81
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); }