Index: src/gpu/GrPath.h |
diff --git a/src/gpu/GrPath.h b/src/gpu/GrPath.h |
index ee3123f9b59a9c0ea4fa6c34d2c5a3d6c09f3cf7..4cb12f4325c6b3c5741eaeaa5502a28e1a6ad416 100644 |
--- a/src/gpu/GrPath.h |
+++ b/src/gpu/GrPath.h |
@@ -9,8 +9,8 @@ |
#define GrPath_DEFINED |
#include "GrGpuResource.h" |
+#include "GrStrokeInfo.h" |
#include "GrPathRendering.h" |
-#include "GrStyle.h" |
#include "SkPath.h" |
#include "SkRect.h" |
@@ -19,25 +19,25 @@ |
/** |
* Initialize to a path with a fixed stroke. Stroke must not be hairline. |
*/ |
- GrPath(GrGpu* gpu, const SkPath& skPath, const GrStyle& style) |
+ GrPath(GrGpu* gpu, const SkPath& skPath, const GrStrokeInfo& stroke) |
: INHERITED(gpu) |
, fBounds(SkRect::MakeEmpty()) |
, fFillType(GrPathRendering::kWinding_FillType) |
#ifdef SK_DEBUG |
, fSkPath(skPath) |
- , fStyle(style) |
+ , fStroke(stroke) |
#endif |
{ |
} |
- static void ComputeKey(const SkPath& path, const GrStyle& style, GrUniqueKey* key, |
+ static void ComputeKey(const SkPath& path, const GrStrokeInfo& stroke, GrUniqueKey* key, |
bool* outIsVolatile); |
const SkRect& getBounds() const { return fBounds; } |
GrPathRendering::FillType getFillType() const { return fFillType; } |
#ifdef SK_DEBUG |
- bool isEqualTo(const SkPath& path, const GrStyle& style) const; |
+ bool isEqualTo(const SkPath& path, const GrStrokeInfo& stroke) const; |
#endif |
protected: |
@@ -46,7 +46,7 @@ |
GrPathRendering::FillType fFillType; |
#ifdef SK_DEBUG |
SkPath fSkPath; |
- GrStyle fStyle; |
+ GrStrokeInfo fStroke; |
#endif |
private: |