From 144caf55ffc692bcda77703a73bb9a894f7d024f Mon Sep 17 00:00:00 2001 From: Hal Canary Date: Mon, 7 Nov 2016 17:57:18 -0500 Subject: src/gpu: s/SkAutoTUnref/sk_sp/g GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4527 Change-Id: I23f0548f98e7c355da05e143e8baa330d4bc04cc Reviewed-on: https://skia-review.googlesource.com/4527 Reviewed-by: Ben Wagner Commit-Queue: Hal Canary --- src/gpu/batches/GrNonAAFillRectPerspectiveBatch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gpu/batches/GrNonAAFillRectPerspectiveBatch.cpp') diff --git a/src/gpu/batches/GrNonAAFillRectPerspectiveBatch.cpp b/src/gpu/batches/GrNonAAFillRectPerspectiveBatch.cpp index aa5a4203cf..0652580aa2 100644 --- a/src/gpu/batches/GrNonAAFillRectPerspectiveBatch.cpp +++ b/src/gpu/batches/GrNonAAFillRectPerspectiveBatch.cpp @@ -162,10 +162,10 @@ private: size_t vertexStride = gp->getVertexStride(); int instanceCount = fRects.count(); - SkAutoTUnref indexBuffer(target->resourceProvider()->refQuadIndexBuffer()); + sk_sp indexBuffer(target->resourceProvider()->refQuadIndexBuffer()); InstancedHelper helper; void* vertices = helper.init(target, kTriangles_GrPrimitiveType, vertexStride, - indexBuffer, kVertsPerInstance, + indexBuffer.get(), kVertsPerInstance, kIndicesPerInstance, instanceCount); if (!vertices || !indexBuffer) { SkDebugf("Could not allocate vertices\n"); -- cgit v1.2.3