| Index: src/gpu/GrTessellator.h
|
| diff --git a/src/gpu/GrTessellator.h b/src/gpu/GrTessellator.h
|
| index 7cc4311aa575f1e4df2e818e34a831066033aadb..dd92015cc2a6d4a3d57b3bbb600c479da67c81f1 100644
|
| --- a/src/gpu/GrTessellator.h
|
| +++ b/src/gpu/GrTessellator.h
|
| @@ -8,6 +8,7 @@
|
| #ifndef GrTessellator_DEFINED
|
| #define GrTessellator_DEFINED
|
|
|
| +#include "GrColor.h"
|
| #include "SkPoint.h"
|
|
|
| class SkPath;
|
| @@ -23,9 +24,13 @@ namespace GrTessellator {
|
|
|
| class VertexAllocator {
|
| public:
|
| + VertexAllocator(size_t stride) : fStride(stride) {}
|
| virtual ~VertexAllocator() {}
|
| - virtual SkPoint* lock(int vertexCount) = 0;
|
| + virtual void* lock(int vertexCount) = 0;
|
| virtual void unlock(int actualCount) = 0;
|
| + size_t stride() const { return fStride; }
|
| +private:
|
| + size_t fStride;
|
| };
|
|
|
| struct WindingVertex {
|
| @@ -40,8 +45,9 @@ struct WindingVertex {
|
| int PathToVertices(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
|
| WindingVertex** verts);
|
|
|
| -int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
|
| - VertexAllocator*, bool *isLinear);
|
| +int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
|
| + VertexAllocator*, bool antialias, const GrColor& color,
|
| + bool canTweakAlphaForCoverage, bool *isLinear);
|
| }
|
|
|
| #endif
|
|
|