diff options
author | Robert Phillips <robertphillips@google.com> | 2017-03-15 10:42:12 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-15 15:20:40 +0000 |
commit | 296b1ccf9b8e9c8b945645efcbaa9c71c7135f58 (patch) | |
tree | e8085e48ed8cd2a3b66316e95215f5b06f39bf50 /src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp | |
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/GrGaussianConvolutionFragmentProcessor.cpp')
-rw-r--r-- | src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp b/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp index ecfd25cb08..4fa462e3bf 100644 --- a/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp +++ b/src/gpu/effects/GrGaussianConvolutionFragmentProcessor.cpp @@ -6,6 +6,7 @@ */ #include "GrGaussianConvolutionFragmentProcessor.h" + #include "GrProxyMove.h" #include "GrTextureProxy.h" #include "../private/GrGLSL.h" @@ -169,14 +170,14 @@ static void fill_in_1D_guassian_kernel(float* kernel, int width, float gaussianS } GrGaussianConvolutionFragmentProcessor::GrGaussianConvolutionFragmentProcessor( - GrContext* context, - sk_sp<GrTextureProxy> proxy, - Direction direction, - int radius, - float gaussianSigma, - bool useBounds, - int bounds[2]) - : INHERITED{context, + GrResourceProvider* resourceProvider, + sk_sp<GrTextureProxy> proxy, + Direction direction, + int radius, + float gaussianSigma, + bool useBounds, + int bounds[2]) + : INHERITED{resourceProvider, ModulationFlags(proxy->config()), GR_PROXY_MOVE(proxy), direction, @@ -239,6 +240,7 @@ sk_sp<GrFragmentProcessor> GrGaussianConvolutionFragmentProcessor::TestCreate( float sigma = radius / 3.f; return GrGaussianConvolutionFragmentProcessor::Make( - d->context(), d->textureProxy(texIdx), dir, radius, sigma, useBounds, bounds); + d->resourceProvider(), d->textureProxy(texIdx), + dir, radius, sigma, useBounds, bounds); } #endif |