Index: src/gpu/GrPath.h |
diff --git a/src/gpu/GrPath.h b/src/gpu/GrPath.h |
index 2edfd4cb5e60bf960e3ecda7f0cf1e6d5ad8aa37..09d317ef2f2d3d0883c01933c67151091b68da20 100644 |
--- a/src/gpu/GrPath.h |
+++ b/src/gpu/GrPath.h |
@@ -10,19 +10,19 @@ |
#include "GrGpuResource.h" |
#include "GrStrokeInfo.h" |
+#include "GrPathRendering.h" |
#include "SkPath.h" |
#include "SkRect.h" |
class GrPath : public GrGpuResource { |
public: |
- |
- |
/** |
* Initialize to a path with a fixed stroke. Stroke must not be hairline. |
*/ |
GrPath(GrGpu* gpu, const SkPath& skPath, const GrStrokeInfo& stroke) |
: INHERITED(gpu, kCached_LifeCycle) |
- , fBounds(skPath.getBounds()) |
+ , fBounds(SkRect::MakeEmpty()) |
+ , fFillType(GrPathRendering::kWinding_FillType) |
#ifdef SK_DEBUG |
, fSkPath(skPath) |
, fStroke(stroke) |
@@ -35,12 +35,15 @@ public: |
const SkRect& getBounds() const { return fBounds; } |
+ GrPathRendering::FillType getFillType() const { return fFillType; } |
#ifdef SK_DEBUG |
bool isEqualTo(const SkPath& path, const GrStrokeInfo& stroke) const; |
#endif |
protected: |
+ // Subclass should init these. |
SkRect fBounds; |
+ GrPathRendering::FillType fFillType; |
#ifdef SK_DEBUG |
SkPath fSkPath; |
GrStrokeInfo fStroke; |