diff options
author | Robert Phillips <robertphillips@google.com> | 2017-02-28 16:20:03 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-28 22:07:05 +0000 |
commit | 32f2818c9d10090efeea62ccc211d48a33322dfb (patch) | |
tree | fd301bc81387a3c3e0cc767cba43ba214a314f86 /src/gpu/effects/GrDistanceFieldGeoProc.h | |
parent | dac5f6bcbec7130a209a6899444feb022719498d (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/gpu/effects/GrDistanceFieldGeoProc.h')
-rw-r--r-- | src/gpu/effects/GrDistanceFieldGeoProc.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/gpu/effects/GrDistanceFieldGeoProc.h b/src/gpu/effects/GrDistanceFieldGeoProc.h index 1852c13984..fc08790a46 100644 --- a/src/gpu/effects/GrDistanceFieldGeoProc.h +++ b/src/gpu/effects/GrDistanceFieldGeoProc.h @@ -49,14 +49,6 @@ enum GrDistanceFieldEffectFlags { class GrDistanceFieldA8TextGeoProc : public GrGeometryProcessor { public: #ifdef SK_GAMMA_APPLY_TO_A8 - static sk_sp<GrGeometryProcessor> Make(GrColor color, const SkMatrix& viewMatrix, - GrTexture* tex, const GrSamplerParams& params, - float lum, uint32_t flags, bool usesLocalCoords) { - return sk_sp<GrGeometryProcessor>( - new GrDistanceFieldA8TextGeoProc(color, viewMatrix, tex, params, lum, flags, - usesLocalCoords)); - } - static sk_sp<GrGeometryProcessor> Make(GrContext* context, GrColor color, const SkMatrix& viewMatrix, sk_sp<GrTextureProxy> proxy, @@ -67,14 +59,6 @@ public: params, lum, flags, usesLocalCoords)); } #else - static sk_sp<GrGeometryProcessor> Make(GrColor color, const SkMatrix& viewMatrix, - GrTexture* tex, const GrSamplerParams& params, - uint32_t flags, bool usesLocalCoords) { - return sk_sp<GrGeometryProcessor>( - new GrDistanceFieldA8TextGeoProc(color, viewMatrix, tex, params, flags, - usesLocalCoords)); - } - static sk_sp<GrGeometryProcessor> Make(GrContext* context, GrColor color, const SkMatrix& viewMatrix, sk_sp<GrTextureProxy> proxy, @@ -106,13 +90,6 @@ public: GrGLSLPrimitiveProcessor* createGLSLInstance(const GrShaderCaps&) const override; private: - GrDistanceFieldA8TextGeoProc(GrColor, const SkMatrix& viewMatrix, - GrTexture* texture, const GrSamplerParams& params, -#ifdef SK_GAMMA_APPLY_TO_A8 - float distanceAdjust, -#endif - uint32_t flags, bool usesLocalCoords); - GrDistanceFieldA8TextGeoProc(GrContext*, GrColor, const SkMatrix& viewMatrix, sk_sp<GrTextureProxy> proxy, const GrSamplerParams& params, #ifdef SK_GAMMA_APPLY_TO_A8 @@ -146,13 +123,6 @@ private: */ class GrDistanceFieldPathGeoProc : public GrGeometryProcessor { public: - static sk_sp<GrGeometryProcessor> Make(GrColor color, const SkMatrix& viewMatrix, - GrTexture* tex, const GrSamplerParams& params, - uint32_t flags, bool usesLocalCoords) { - return sk_sp<GrGeometryProcessor>( - new GrDistanceFieldPathGeoProc(color, viewMatrix, tex, params, flags, usesLocalCoords)); - } - static sk_sp<GrGeometryProcessor> Make(GrContext* context, GrColor color, const SkMatrix& viewMatrix, sk_sp<GrTextureProxy> proxy, const GrSamplerParams& params, @@ -179,10 +149,6 @@ public: GrGLSLPrimitiveProcessor* createGLSLInstance(const GrShaderCaps&) const override; private: - GrDistanceFieldPathGeoProc(GrColor, const SkMatrix& viewMatrix, GrTexture* texture, - const GrSamplerParams& params, uint32_t flags, - bool usesLocalCoords); - GrDistanceFieldPathGeoProc(GrContext*, GrColor, const SkMatrix& viewMatrix, sk_sp<GrTextureProxy>, const GrSamplerParams&, uint32_t flags, bool usesLocalCoords); @@ -224,15 +190,6 @@ public: } }; - static sk_sp<GrGeometryProcessor> Make(GrColor color, const SkMatrix& viewMatrix, - GrTexture* tex, const GrSamplerParams& params, - DistanceAdjust distanceAdjust, uint32_t flags, - bool usesLocalCoords) { - return sk_sp<GrGeometryProcessor>( - new GrDistanceFieldLCDTextGeoProc(color, viewMatrix, tex, params, distanceAdjust, - flags, usesLocalCoords)); - } - static sk_sp<GrGeometryProcessor> Make(GrContext* context, GrColor color, const SkMatrix& viewMatrix, sk_sp<GrTextureProxy> proxy, @@ -263,11 +220,6 @@ public: GrGLSLPrimitiveProcessor* createGLSLInstance(const GrShaderCaps&) const override; private: - GrDistanceFieldLCDTextGeoProc(GrColor, const SkMatrix& viewMatrix, - GrTexture* texture, const GrSamplerParams& params, - DistanceAdjust wa, uint32_t flags, - bool usesLocalCoords); - GrDistanceFieldLCDTextGeoProc(GrContext*, GrColor, const SkMatrix& viewMatrix, sk_sp<GrTextureProxy> proxy, const GrSamplerParams& params, DistanceAdjust wa, uint32_t flags, |