Index: src/gpu/batches/GrNinePatch.cpp |
diff --git a/src/gpu/batches/GrNinePatch.cpp b/src/gpu/batches/GrNinePatch.cpp |
index 24e3dd6e03ba011c62c6d3d2236f47984211f92c..5f5339543b0eb65bc0788bab5cc3de26720e6ce2 100644 |
--- a/src/gpu/batches/GrNinePatch.cpp |
+++ b/src/gpu/batches/GrNinePatch.cpp |
@@ -15,12 +15,12 @@ |
#include "SkNinePatchIter.h" |
#include "SkRect.h" |
-static const GrGeometryProcessor* create_gp(bool readsCoverage) { |
+static sk_sp<GrGeometryProcessor> create_gp(bool readsCoverage) { |
using namespace GrDefaultGeoProcFactory; |
Color color(Color::kAttribute_Type); |
Coverage coverage(readsCoverage ? Coverage::kSolid_Type : Coverage::kNone_Type); |
LocalCoords localCoords(LocalCoords::kHasExplicit_Type); |
- return GrDefaultGeoProcFactory::Create(color, coverage, localCoords, SkMatrix::I()); |
+ return GrDefaultGeoProcFactory::Make(color, coverage, localCoords, SkMatrix::I()); |
} |
class GrNonAANinePatchBatch : public GrVertexBatch { |
@@ -85,7 +85,7 @@ public: |
private: |
void onPrepareDraws(Target* target) const override { |
- SkAutoTUnref<const GrGeometryProcessor> gp(create_gp(fOverrides.readsCoverage())); |
+ sk_sp<GrGeometryProcessor> gp(create_gp(fOverrides.readsCoverage())); |
if (!gp) { |
SkDebugf("Couldn't create GrGeometryProcessor\n"); |
return; |
@@ -136,7 +136,7 @@ private: |
verts += kVertsPerRect * vertexStride; |
} |
} |
- helper.recordDraw(target, gp); |
+ helper.recordDraw(target, gp.get()); |
} |
void initBatchTracker(const GrXPOverridesForBatch& overrides) override { |