Index: src/gpu/effects/GrConvolutionEffect.cpp |
diff --git a/src/gpu/effects/GrConvolutionEffect.cpp b/src/gpu/effects/GrConvolutionEffect.cpp |
index 9567e4c2214dc703751208d3cdbb84b4fae03ff8..2266c47eeb60355d73c18205b8375cbd8f6f847e 100644 |
--- a/src/gpu/effects/GrConvolutionEffect.cpp |
+++ b/src/gpu/effects/GrConvolutionEffect.cpp |
@@ -213,7 +213,7 @@ bool GrConvolutionEffect::onIsEqual(const GrFragmentProcessor& sBase) const { |
GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrConvolutionEffect); |
-const GrFragmentProcessor* GrConvolutionEffect::TestCreate(GrProcessorTestData* d) { |
+sk_sp<GrFragmentProcessor> GrConvolutionEffect::TestCreate(GrProcessorTestData* d) { |
int texIdx = d->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx : |
GrProcessorUnitTest::kAlphaTextureIdx; |
Direction dir = d->fRandom->nextBool() ? kX_Direction : kY_Direction; |
@@ -228,10 +228,10 @@ const GrFragmentProcessor* GrConvolutionEffect::TestCreate(GrProcessorTestData* |
} |
bool useBounds = d->fRandom->nextBool(); |
- return GrConvolutionEffect::Create(d->fTextures[texIdx], |
- dir, |
- radius, |
- kernel, |
- useBounds, |
- bounds); |
+ return GrConvolutionEffect::Make(d->fTextures[texIdx], |
+ dir, |
+ radius, |
+ kernel, |
+ useBounds, |
+ bounds); |
} |