aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrNinePatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/batches/GrNinePatch.cpp')
-rw-r--r--src/gpu/batches/GrNinePatch.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gpu/batches/GrNinePatch.cpp b/src/gpu/batches/GrNinePatch.cpp
index 522e775c33..5e0be737ae 100644
--- a/src/gpu/batches/GrNinePatch.cpp
+++ b/src/gpu/batches/GrNinePatch.cpp
@@ -85,11 +85,10 @@ private:
numRects += fPatches[i].fIter->numRectsToDraw();
}
- SkAutoTUnref<const GrBuffer> indexBuffer(
- target->resourceProvider()->refQuadIndexBuffer());
+ sk_sp<const GrBuffer> indexBuffer(target->resourceProvider()->refQuadIndexBuffer());
InstancedHelper helper;
void* vertices = helper.init(target, kTriangles_GrPrimitiveType, vertexStride,
- indexBuffer, kVertsPerRect,
+ indexBuffer.get(), kVertsPerRect,
kIndicesPerRect, numRects);
if (!vertices || !indexBuffer) {
SkDebugf("Could not allocate vertices\n");