diff options
author | Robert Phillips <robertphillips@google.com> | 2017-03-29 13:06:57 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-29 18:28:02 +0000 |
commit | 769e80d23d1c1d240b1d510034ec57d19e768d07 (patch) | |
tree | 851e8c62bb7b3260ca5e41b1951e4678f95e1770 /src/gpu/effects/GrConfigConversionEffect.cpp | |
parent | 3e306f6bf40c4ade5e1c216fcc8043006d7dbcee (diff) |
More GrSurfaceProxy-clean up
Split out of: https://skia-review.googlesource.com/c/10484/ (Omnibus: Push instantiation of GrTextures later (post TextureSampler))
Change-Id: I1ee39a23c749e420dce0ad561ee1c8b09bdcc763
Reviewed-on: https://skia-review.googlesource.com/10485
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/effects/GrConfigConversionEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrConfigConversionEffect.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp index 790a47490c..62008c7364 100644 --- a/src/gpu/effects/GrConfigConversionEffect.cpp +++ b/src/gpu/effects/GrConfigConversionEffect.cpp @@ -87,18 +87,6 @@ private: }; /////////////////////////////////////////////////////////////////////////////// -GrConfigConversionEffect::GrConfigConversionEffect(GrTexture* texture, - PMConversion pmConversion, - const SkMatrix& matrix) - : INHERITED(texture, nullptr, matrix, kNone_OptimizationFlags) - , fPMConversion(pmConversion) { - this->initClassID<GrConfigConversionEffect>(); - // We expect to get here with non-BGRA/RGBA only if we're doing not doing a premul/unpremul - // conversion. - SkASSERT(kRGBA_8888_GrPixelConfig == texture->config() || - kBGRA_8888_GrPixelConfig == texture->config()); -} - GrConfigConversionEffect::GrConfigConversionEffect(GrResourceProvider* resourceProvider, sk_sp<GrTextureProxy> proxy, PMConversion pmConversion, @@ -275,18 +263,6 @@ void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context } } -sk_sp<GrFragmentProcessor> GrConfigConversionEffect::Make(GrTexture* texture, - PMConversion pmConversion, - const SkMatrix& matrix) { - if (kRGBA_8888_GrPixelConfig != texture->config() && - kBGRA_8888_GrPixelConfig != texture->config()) { - // The PM conversions assume colors are 0..255 - return nullptr; - } - return sk_sp<GrFragmentProcessor>( - new GrConfigConversionEffect(texture, pmConversion, matrix)); -} - sk_sp<GrFragmentProcessor> GrConfigConversionEffect::Make(GrResourceProvider* resourceProvider, sk_sp<GrTextureProxy> proxy, PMConversion pmConversion, |