Chromium Code Reviews| Index: src/gpu/GrTessellator.h |
| diff --git a/src/gpu/GrTessellator.h b/src/gpu/GrTessellator.h |
| index 4304920fbc024856a9f5d7bc7fc09cf72a9d1a5d..298e8bb17e5bb61b331c40714e35f97a2d3e4b48 100644 |
| --- a/src/gpu/GrTessellator.h |
| +++ b/src/gpu/GrTessellator.h |
| @@ -8,8 +8,10 @@ |
| #ifndef GrTessellator_DEFINED |
| #define GrTessellator_DEFINED |
| -#include "SkPath.h" |
| -#include "GrResourceProvider.h" |
| +#include "SkPoint.h" |
| + |
| +class SkPath; |
| +struct SkRect; |
| /** |
| * Provides utility functions for converting paths to a collection of triangles. |
| @@ -19,6 +21,13 @@ |
| namespace GrTessellator { |
| +class VertexBuffer { |
|
bsalomon
2016/03/10 15:46:24
Reading that code below it isn't always totally ob
Stephen White
2016/03/10 15:59:29
Done.
|
| +public: |
| + virtual ~VertexBuffer() {} |
| + virtual SkPoint* lock(int vertexCount) = 0; |
| + virtual void unlock(int actualCount) = 0; |
| +}; |
| + |
| struct WindingVertex { |
| SkPoint fPos; |
| int fWinding; |
| @@ -32,9 +41,7 @@ int PathToVertices(const SkPath& path, SkScalar tolerance, const SkRect& clipBou |
| WindingVertex** verts); |
| int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds, |
| - GrResourceProvider* resourceProvider, |
| - SkAutoTUnref<GrVertexBuffer>& vertexBuffer, bool canMapVB, bool* isLinear); |
| - |
| + VertexBuffer*, bool *isLinear); |
| } |
| #endif |