Index: src/gpu/batches/GrTessellatingPathRenderer.cpp |
diff --git a/src/gpu/batches/GrTessellatingPathRenderer.cpp b/src/gpu/batches/GrTessellatingPathRenderer.cpp |
index 6dce9f73c839d63432e59fe310ab7c9e77b23141..b2c3138aed438f9e0979826cdacd121dd8bc5da2 100644 |
--- a/src/gpu/batches/GrTessellatingPathRenderer.cpp |
+++ b/src/gpu/batches/GrTessellatingPathRenderer.cpp |
@@ -187,8 +187,7 @@ private: |
TessInfo info; |
info.fTolerance = isLinear ? 0 : tol; |
info.fCount = count; |
- SkAutoTUnref<SkData> data(SkData::NewWithCopy(&info, sizeof(info))); |
- key.setCustomData(data.get()); |
+ key.setCustomData(SkData::MakeWithCopy(&info, sizeof(info))); |
rp->assignUniqueKeyToResource(key, allocator.vertexBuffer()); |
} |