| Index: src/gpu/batches/GrTessellatingPathRenderer.cpp
|
| diff --git a/src/gpu/batches/GrTessellatingPathRenderer.cpp b/src/gpu/batches/GrTessellatingPathRenderer.cpp
|
| index 8cd411a49f8e2b21127831f403b0f410365b755f..082a8dbdcfa68779e57f9676dd5b4c5e74fe3e46 100644
|
| --- a/src/gpu/batches/GrTessellatingPathRenderer.cpp
|
| +++ b/src/gpu/batches/GrTessellatingPathRenderer.cpp
|
| @@ -1418,7 +1418,7 @@ private:
|
| int tessellate(GrUniqueKey* key,
|
| GrResourceProvider* resourceProvider,
|
| SkAutoTUnref<GrVertexBuffer>& vertexBuffer,
|
| - bool canMapVB) {
|
| + bool canMapVB) const {
|
| SkPath path;
|
| GrStrokeInfo stroke(fStroke);
|
| if (stroke.isDashed()) {
|
| @@ -1521,7 +1521,7 @@ private:
|
| return actualCount;
|
| }
|
|
|
| - void onPrepareDraws(Target* target) override {
|
| + void onPrepareDraws(Target* target) const override {
|
| // construct a cache key from the path's genID and the view matrix
|
| static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain();
|
| GrUniqueKey key;
|
| @@ -1545,7 +1545,7 @@ private:
|
| screenSpaceTol, fViewMatrix, fPath.getBounds());
|
| if (!cache_match(vertexBuffer.get(), tol, &actualCount)) {
|
| bool canMapVB = GrCaps::kNone_MapFlags != target->caps().mapBufferFlags();
|
| - actualCount = tessellate(&key, rp, vertexBuffer, canMapVB);
|
| + actualCount = this->tessellate(&key, rp, vertexBuffer, canMapVB);
|
| }
|
|
|
| if (actualCount == 0) {
|
|
|