Index: src/gpu/batches/GrTessellatingPathRenderer.cpp |
diff --git a/src/gpu/batches/GrTessellatingPathRenderer.cpp b/src/gpu/batches/GrTessellatingPathRenderer.cpp |
index c00e8ecbe69ee17148c1ca5fca521adf66b1bc3f..4ba01884dc318e30c2089475a8a47683c9099853 100644 |
--- a/src/gpu/batches/GrTessellatingPathRenderer.cpp |
+++ b/src/gpu/batches/GrTessellatingPathRenderer.cpp |
@@ -45,7 +45,7 @@ private: |
} |
}; |
-bool cache_match(GrVertexBuffer* vertexBuffer, SkScalar tol, int* actualCount) { |
+bool cache_match(GrBuffer* vertexBuffer, SkScalar tol, int* actualCount) { |
if (!vertexBuffer) { |
return false; |
} |
@@ -68,8 +68,8 @@ public: |
} |
SkPoint* lock(int vertexCount) override { |
size_t size = vertexCount * sizeof(SkPoint); |
- fVertexBuffer.reset(fResourceProvider->createVertexBuffer( |
- size, GrResourceProvider::kStatic_BufferUsage, 0)); |
+ fVertexBuffer.reset(fResourceProvider->createBuffer( |
+ kVertex_GrBufferType, size, kStatic_GrAccessPattern, 0)); |
if (!fVertexBuffer.get()) { |
return nullptr; |
} |
@@ -89,9 +89,9 @@ public: |
} |
fVertices = nullptr; |
} |
- GrVertexBuffer* vertexBuffer() { return fVertexBuffer.get(); } |
+ GrBuffer* vertexBuffer() { return fVertexBuffer.get(); } |
private: |
- SkAutoTUnref<GrVertexBuffer> fVertexBuffer; |
+ SkAutoTUnref<GrBuffer> fVertexBuffer; |
GrResourceProvider* fResourceProvider; |
bool fCanMapVB; |
SkPoint* fVertices; |
@@ -158,8 +158,7 @@ private: |
fStroke.asUniqueKeyFragment(&builder[2 + clipBoundsSize32]); |
builder.finish(); |
GrResourceProvider* rp = target->resourceProvider(); |
- SkAutoTUnref<GrVertexBuffer> cachedVertexBuffer( |
- rp->findAndRefTByUniqueKey<GrVertexBuffer>(key)); |
+ SkAutoTUnref<GrBuffer> cachedVertexBuffer(rp->findAndRefTByUniqueKey<GrBuffer>(key)); |
int actualCount; |
SkScalar screenSpaceTol = GrPathUtils::kDefaultTolerance; |
SkScalar tol = GrPathUtils::scaleToleranceToSrc( |
@@ -226,7 +225,7 @@ private: |
this->draw(target, gp.get()); |
} |
- void drawVertices(Target* target, const GrGeometryProcessor* gp, const GrVertexBuffer* vb, |
+ void drawVertices(Target* target, const GrGeometryProcessor* gp, const GrBuffer* vb, |
int firstVertex, int count) const { |
SkASSERT(gp->getVertexStride() == sizeof(SkPoint)); |