Index: gm/dcshader.cpp |
diff --git a/gm/dcshader.cpp b/gm/dcshader.cpp |
index 568a35376cace59fdacfefce659eb7fdb47da448..2b179a0a1fc639680b4a2eea6d5115a848cb2fd3 100644 |
--- a/gm/dcshader.cpp |
+++ b/gm/dcshader.cpp |
@@ -35,7 +35,7 @@ public: |
buf.writeMatrix(fDeviceMatrix); |
} |
- const GrFragmentProcessor* asFragmentProcessor(GrContext*, |
+ sk_sp<GrFragmentProcessor> asFragmentProcessor(GrContext*, |
const SkMatrix& viewM, |
const SkMatrix* localMatrix, |
SkFilterQuality, |
@@ -99,13 +99,13 @@ private: |
GrCoordTransform fDeviceTransform; |
}; |
-const GrFragmentProcessor* DCShader::asFragmentProcessor(GrContext*, |
+sk_sp<GrFragmentProcessor> DCShader::asFragmentProcessor(GrContext*, |
const SkMatrix& viewM, |
const SkMatrix* localMatrix, |
SkFilterQuality, |
SkSourceGammaTreatment) const { |
- SkAutoTUnref<const GrFragmentProcessor> inner(new DCFP(fDeviceMatrix)); |
- return GrFragmentProcessor::MulOutputByInputAlpha(inner); |
+ sk_sp<GrFragmentProcessor> inner(new DCFP(fDeviceMatrix)); |
+ return GrFragmentProcessor::MulOutputByInputAlpha(std::move(inner)); |
} |
class DCShaderGM : public GM { |