diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-21 15:48:20 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-21 15:48:20 +0000 |
commit | 04fdaa1afed8687a3b15226ddebcb798c94ddac5 (patch) | |
tree | a595665cf3350a2bcff56acf65c1509cb14c26ea /src/core/SkStroke.h | |
parent | 7775fd5779e632d6f5724e0e5d39ed347cf965b0 (diff) |
use direction from isRect in strokeRect, and only stroke if it is closed
Review URL: https://codereview.appspot.com/6846086
git-svn-id: http://skia.googlecode.com/svn/trunk@6528 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkStroke.h')
-rw-r--r-- | src/core/SkStroke.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/SkStroke.h b/src/core/SkStroke.h index 5f0b475cf1..48805165cb 100644 --- a/src/core/SkStroke.h +++ b/src/core/SkStroke.h @@ -1,4 +1,3 @@ - /* * Copyright 2006 The Android Open Source Project * @@ -6,16 +5,13 @@ * found in the LICENSE file. */ - #ifndef SkStroke_DEFINED #define SkStroke_DEFINED +#include "SkPath.h" #include "SkPoint.h" #include "SkPaint.h" -struct SkRect; -class SkPath; - /** \class SkStroke SkStroke is the utility class that constructs paths by stroking geometries (lines, rects, ovals, roundrects, paths). This is @@ -40,7 +36,11 @@ public: bool getDoFill() const { return SkToBool(fDoFill); } void setDoFill(bool doFill) { fDoFill = SkToU8(doFill); } - void strokeRect(const SkRect&, SkPath*) const; + /** + * Stroke the specified rect, winding it in the specified direction.. + */ + void strokeRect(const SkRect& rect, SkPath* result, + SkPath::Direction = SkPath::kCW_Direction) const; void strokePath(const SkPath& path, SkPath*) const; //////////////////////////////////////////////////////////////// |