aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkGpuBlurUtils.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-02-28 16:20:03 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-28 22:07:05 +0000
commit32f2818c9d10090efeea62ccc211d48a33322dfb (patch)
treefd301bc81387a3c3e0cc767cba43ba214a314f86 /src/core/SkGpuBlurUtils.cpp
parentdac5f6bcbec7130a209a6899444feb022719498d (diff)
Clean up/remove unused GrFragmentProcessor-derived ctors
This is the simple (i.e., non-TextureAdjuster) portion of: https://skia-review.googlesource.com/c/8823/ (Remove GrFragmentProcessor-derived class' GrTexture-based ctors) Change-Id: I8f673ebe922e03c69473c18c166bcf818507c662 Reviewed-on: https://skia-review.googlesource.com/8997 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/core/SkGpuBlurUtils.cpp')
-rw-r--r--src/core/SkGpuBlurUtils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkGpuBlurUtils.cpp b/src/core/SkGpuBlurUtils.cpp
index 3c2115e740..bc40c38a42 100644
--- a/src/core/SkGpuBlurUtils.cpp
+++ b/src/core/SkGpuBlurUtils.cpp
@@ -372,12 +372,12 @@ sk_sp<GrRenderTargetContext> GaussianBlur(GrContext* context,
paint.setGammaCorrect(dstRenderTargetContext->isGammaCorrect());
// FIXME: this should be mitchell, not bilinear.
GrSamplerParams params(SkShader::kClamp_TileMode, GrSamplerParams::kBilerp_FilterMode);
- sk_sp<GrTexture> tex(srcRenderTargetContext->asTexture());
- if (!tex) {
+ sk_sp<GrTextureProxy> proxy(srcRenderTargetContext->asTextureProxyRef());
+ if (!proxy) {
return nullptr;
}
- paint.addColorTextureProcessor(tex.get(), nullptr, SkMatrix::I(), params);
+ paint.addColorTextureProcessor(context, std::move(proxy), nullptr, SkMatrix::I(), params);
paint.setPorterDuffXPFactory(SkBlendMode::kSrc);
SkIRect dstRect(srcRect);