diff options
author | 2017-03-15 10:42:12 -0400 | |
---|---|---|
committer | 2017-03-15 15:20:40 +0000 | |
commit | 296b1ccf9b8e9c8b945645efcbaa9c71c7135f58 (patch) | |
tree | e8085e48ed8cd2a3b66316e95215f5b06f39bf50 /src/gpu/effects/GrMatrixConvolutionEffect.h | |
parent | e0d4fbac00f240603e725b50d58d89048fd8b21f (diff) |
Retract GrContext from src/gpu/effects
Change-Id: Iceb7263098286bafb2605ef17d1fe6bb25d71e97
Reviewed-on: https://skia-review.googlesource.com/9693
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/effects/GrMatrixConvolutionEffect.h')
-rw-r--r-- | src/gpu/effects/GrMatrixConvolutionEffect.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/effects/GrMatrixConvolutionEffect.h b/src/gpu/effects/GrMatrixConvolutionEffect.h index a8bdd6f552..6104f11402 100644 --- a/src/gpu/effects/GrMatrixConvolutionEffect.h +++ b/src/gpu/effects/GrMatrixConvolutionEffect.h @@ -17,7 +17,7 @@ class GrMatrixConvolutionEffect : public GrSingleTextureEffect { public: - static sk_sp<GrFragmentProcessor> Make(GrContext* context, + static sk_sp<GrFragmentProcessor> Make(GrResourceProvider* resourceProvider, sk_sp<GrTextureProxy> proxy, const SkIRect& bounds, const SkISize& kernelSize, @@ -28,11 +28,11 @@ public: GrTextureDomain::Mode tileMode, bool convolveAlpha) { return sk_sp<GrFragmentProcessor>( - new GrMatrixConvolutionEffect(context, std::move(proxy), bounds, kernelSize, kernel, - gain, bias, kernelOffset, tileMode, convolveAlpha)); + new GrMatrixConvolutionEffect(resourceProvider, std::move(proxy), bounds, kernelSize, + kernel, gain, bias, kernelOffset, tileMode, convolveAlpha)); } - static sk_sp<GrFragmentProcessor> MakeGaussian(GrContext* context, + static sk_sp<GrFragmentProcessor> MakeGaussian(GrResourceProvider*, sk_sp<GrTextureProxy> proxy, const SkIRect& bounds, const SkISize& kernelSize, @@ -56,7 +56,7 @@ public: const char* name() const override { return "MatrixConvolution"; } private: - GrMatrixConvolutionEffect(GrContext*, + GrMatrixConvolutionEffect(GrResourceProvider*, sk_sp<GrTextureProxy> proxy, const SkIRect& bounds, const SkISize& kernelSize, |