diff options
author | 2016-11-07 17:57:18 -0500 | |
---|---|---|
committer | 2016-11-07 23:36:46 +0000 | |
commit | 144caf55ffc692bcda77703a73bb9a894f7d024f (patch) | |
tree | fb300abb3c5d5ab959e586f401378f4d0b947dbd /src/gpu/batches/GrNonAAFillRectPerspectiveBatch.cpp | |
parent | ad48a70e990f317d2bb6e2aa812acbf9c195e677 (diff) |
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 <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'src/gpu/batches/GrNonAAFillRectPerspectiveBatch.cpp')
-rw-r--r-- | src/gpu/batches/GrNonAAFillRectPerspectiveBatch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<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, kVertsPerInstance, + indexBuffer.get(), kVertsPerInstance, kIndicesPerInstance, instanceCount); if (!vertices || !indexBuffer) { SkDebugf("Could not allocate vertices\n"); |