diff options
author | 2017-02-21 10:04:31 -0500 | |
---|---|---|
committer | 2017-02-21 16:34:11 +0000 | |
commit | dbc8eeb592123619d9c5bb4b6c6225b9fd45d03b (patch) | |
tree | 053905e92d6e9ac236a2a2adecb07104e9c0e390 /src/effects/SkAlphaThresholdFilter.cpp | |
parent | 9048851e579dffad43f0c77e15030d4fdd5377a8 (diff) |
Remove GrProcessorTestData's GrTextures
(No longer) Blocked on: https://skia-review.googlesource.com/c/8450/ (Remove asTextureRef from SkSpecialImage & update effects accordingly (take 2))
This also (unfortunately) picks up a few straggling effects that didn't have a sk_sp<GrTextureProxy> factory.
Change-Id: I5ce583a084aa8fe00e866eec1db90e2ec9dd2ab0
Reviewed-on: https://skia-review.googlesource.com/8500
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/effects/SkAlphaThresholdFilter.cpp')
-rw-r--r-- | src/effects/SkAlphaThresholdFilter.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp index bd38fb4ada..eae4b4b85c 100644 --- a/src/effects/SkAlphaThresholdFilter.cpp +++ b/src/effects/SkAlphaThresholdFilter.cpp @@ -170,15 +170,11 @@ sk_sp<SkSpecialImage> SkAlphaThresholdFilterImpl::onFilterImage(SkSpecialImage* sk_sp<GrColorSpaceXform> colorSpaceXform = GrColorSpaceXform::Make(input->getColorSpace(), outProps.colorSpace()); - GrTexture* maskTex = maskProxy->instantiate(context->textureProvider()); - if (!maskTex) { - return nullptr; - } sk_sp<GrFragmentProcessor> fp(GrAlphaThresholdFragmentProcessor::Make( context, std::move(inputProxy), std::move(colorSpaceXform), - maskTex, + std::move(maskProxy), fInnerThreshold, fOuterThreshold, bounds)); |