diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-25 19:00:29 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-25 19:00:29 +0000 |
commit | 396e61fe440590744345e0c56970b26ab464591d (patch) | |
tree | 5a1b9b376b5d911a97639cb8d57e42c93db37ae3 /src/effects | |
parent | 08afc843c074429a9848d8d165e6b898e3e7d371 (diff) |
Rename GrProgramStageFactory to GrBackendEffectFactory.
Review URL: https://codereview.appspot.com/6773044
git-svn-id: http://skia.googlecode.com/svn/trunk@6125 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/SkBlendImageFilter.cpp | 10 | ||||
-rw-r--r-- | src/effects/SkColorMatrixFilter.cpp | 6 | ||||
-rw-r--r-- | src/effects/SkLightingImageFilter.cpp | 26 | ||||
-rw-r--r-- | src/effects/SkMagnifierImageFilter.cpp | 12 | ||||
-rw-r--r-- | src/effects/SkMatrixConvolutionImageFilter.cpp | 10 | ||||
-rw-r--r-- | src/effects/SkMorphologyImageFilter.cpp | 10 | ||||
-rw-r--r-- | src/effects/SkTableColorFilter.cpp | 10 | ||||
-rw-r--r-- | src/effects/gradients/SkGradientShader.cpp | 2 | ||||
-rw-r--r-- | src/effects/gradients/SkGradientShaderPriv.h | 4 | ||||
-rw-r--r-- | src/effects/gradients/SkLinearGradient.cpp | 6 | ||||
-rw-r--r-- | src/effects/gradients/SkRadialGradient.cpp | 6 | ||||
-rw-r--r-- | src/effects/gradients/SkSweepGradient.cpp | 6 | ||||
-rw-r--r-- | src/effects/gradients/SkTwoPointConicalGradient.cpp | 8 | ||||
-rw-r--r-- | src/effects/gradients/SkTwoPointRadialGradient.cpp | 8 |
14 files changed, 62 insertions, 62 deletions
diff --git a/src/effects/SkBlendImageFilter.cpp b/src/effects/SkBlendImageFilter.cpp index 60f334ab7b..10104cc5b2 100644 --- a/src/effects/SkBlendImageFilter.cpp +++ b/src/effects/SkBlendImageFilter.cpp @@ -112,7 +112,7 @@ bool SkBlendImageFilter::onFilterImage(Proxy* proxy, #if SK_SUPPORT_GPU class GrGLBlendEffect : public GrGLLegacyEffect { public: - GrGLBlendEffect(const GrProgramStageFactory& factory, + GrGLBlendEffect(const GrBackendEffectFactory& factory, const GrEffect& effect); virtual ~GrGLBlendEffect(); @@ -139,7 +139,7 @@ public: virtual ~GrBlendEffect(); virtual bool isEqual(const GrEffect&) const SK_OVERRIDE; - const GrProgramStageFactory& getFactory() const; + const GrBackendEffectFactory& getFactory() const; SkBlendImageFilter::Mode mode() const { return fMode; } typedef GrGLBlendEffect GLEffect; @@ -230,13 +230,13 @@ bool GrBlendEffect::isEqual(const GrEffect& sBase) const { fMode == s.fMode; } -const GrProgramStageFactory& GrBlendEffect::getFactory() const { - return GrTProgramStageFactory<GrBlendEffect>::getInstance(); +const GrBackendEffectFactory& GrBlendEffect::getFactory() const { + return GrTBackendEffectFactory<GrBlendEffect>::getInstance(); } /////////////////////////////////////////////////////////////////////////////// -GrGLBlendEffect::GrGLBlendEffect(const GrProgramStageFactory& factory, +GrGLBlendEffect::GrGLBlendEffect(const GrBackendEffectFactory& factory, const GrEffect& effect) : INHERITED(factory), fMode(static_cast<const GrBlendEffect&>(effect).mode()) { diff --git a/src/effects/SkColorMatrixFilter.cpp b/src/effects/SkColorMatrixFilter.cpp index ae9cfb0056..5e2b960d0a 100644 --- a/src/effects/SkColorMatrixFilter.cpp +++ b/src/effects/SkColorMatrixFilter.cpp @@ -328,8 +328,8 @@ public: ColorMatrixEffect(const SkColorMatrix& matrix) : GrEffect(0), fMatrix(matrix) {} - virtual const GrProgramStageFactory& getFactory() const SK_OVERRIDE { - return GrTProgramStageFactory<ColorMatrixEffect>::getInstance(); + virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE { + return GrTBackendEffectFactory<ColorMatrixEffect>::getInstance(); } virtual bool isEqual(const GrEffect& s) const { @@ -344,7 +344,7 @@ public: // this class always generates the same code. static StageKey GenKey(const GrEffect& s, const GrGLCaps&) { return 0; } - GLEffect(const GrProgramStageFactory& factory, + GLEffect(const GrBackendEffectFactory& factory, const GrEffect& effect) : INHERITED(factory) , fMatrixHandle(GrGLUniformManager::kInvalidUniformHandle) diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp index 67403bc5e4..8464f6e42c 100644 --- a/src/effects/SkLightingImageFilter.cpp +++ b/src/effects/SkLightingImageFilter.cpp @@ -14,7 +14,7 @@ #include "SkTypes.h" #if SK_SUPPORT_GPU -#include "GrProgramStageFactory.h" +#include "GrBackendEffectFactory.h" #include "effects/GrSingleTextureEffect.h" #include "gl/GrGLEffect.h" #include "gl/GrGLTexture.h" @@ -328,7 +328,7 @@ public: typedef GrGLDiffuseLightingEffect GLEffect; - virtual const GrProgramStageFactory& getFactory() const SK_OVERRIDE; + virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE; virtual bool isEqual(const GrEffect&) const SK_OVERRIDE; SkScalar kd() const { return fKD; } private: @@ -349,7 +349,7 @@ public: typedef GrGLSpecularLightingEffect GLEffect; - virtual const GrProgramStageFactory& getFactory() const SK_OVERRIDE; + virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE; virtual bool isEqual(const GrEffect&) const SK_OVERRIDE; SkScalar ks() const { return fKS; } SkScalar shininess() const { return fShininess; } @@ -941,7 +941,7 @@ SkLight* create_random_light(SkRandom* random) { class GrGLLightingEffect : public GrGLLegacyEffect { public: - GrGLLightingEffect(const GrProgramStageFactory& factory, + GrGLLightingEffect(const GrBackendEffectFactory& factory, const GrEffect& effect); virtual ~GrGLLightingEffect(); @@ -971,7 +971,7 @@ private: class GrGLDiffuseLightingEffect : public GrGLLightingEffect { public: - GrGLDiffuseLightingEffect(const GrProgramStageFactory& factory, + GrGLDiffuseLightingEffect(const GrBackendEffectFactory& factory, const GrEffect& effect); virtual void setupVariables(GrGLShaderBuilder* builder) SK_OVERRIDE; virtual void emitLightFunc(GrGLShaderBuilder*, SkString* funcName) SK_OVERRIDE; @@ -987,7 +987,7 @@ private: class GrGLSpecularLightingEffect : public GrGLLightingEffect { public: - GrGLSpecularLightingEffect(const GrProgramStageFactory& factory, + GrGLSpecularLightingEffect(const GrBackendEffectFactory& factory, const GrEffect& effect); virtual void setupVariables(GrGLShaderBuilder* builder) SK_OVERRIDE; virtual void emitLightFunc(GrGLShaderBuilder*, SkString* funcName) SK_OVERRIDE; @@ -1027,8 +1027,8 @@ GrDiffuseLightingEffect::GrDiffuseLightingEffect(GrTexture* texture, const SkLig : INHERITED(texture, light, surfaceScale), fKD(kd) { } -const GrProgramStageFactory& GrDiffuseLightingEffect::getFactory() const { - return GrTProgramStageFactory<GrDiffuseLightingEffect>::getInstance(); +const GrBackendEffectFactory& GrDiffuseLightingEffect::getFactory() const { + return GrTBackendEffectFactory<GrDiffuseLightingEffect>::getInstance(); } bool GrDiffuseLightingEffect::isEqual(const GrEffect& sBase) const { @@ -1053,7 +1053,7 @@ GrEffect* GrDiffuseLightingEffect::TestCreate(SkRandom* random, /////////////////////////////////////////////////////////////////////////////// -GrGLLightingEffect::GrGLLightingEffect(const GrProgramStageFactory& factory, +GrGLLightingEffect::GrGLLightingEffect(const GrBackendEffectFactory& factory, const GrEffect& effect) : INHERITED(factory) , fImageIncrementUni(kInvalidUniformHandle) @@ -1187,7 +1187,7 @@ void GrGLLightingEffect::setData(const GrGLUniformManager& uman, const GrEffect& /////////////////////////////////////////////////////////////////////////////// -GrGLDiffuseLightingEffect::GrGLDiffuseLightingEffect(const GrProgramStageFactory& factory, +GrGLDiffuseLightingEffect::GrGLDiffuseLightingEffect(const GrBackendEffectFactory& factory, const GrEffect& effect) : INHERITED(factory, effect) , fKDUni(kInvalidUniformHandle) { @@ -1232,8 +1232,8 @@ GrSpecularLightingEffect::GrSpecularLightingEffect(GrTexture* texture, const SkL fShininess(shininess) { } -const GrProgramStageFactory& GrSpecularLightingEffect::getFactory() const { - return GrTProgramStageFactory<GrSpecularLightingEffect>::getInstance(); +const GrBackendEffectFactory& GrSpecularLightingEffect::getFactory() const { + return GrTBackendEffectFactory<GrSpecularLightingEffect>::getInstance(); } bool GrSpecularLightingEffect::isEqual(const GrEffect& sBase) const { @@ -1259,7 +1259,7 @@ GrEffect* GrSpecularLightingEffect::TestCreate(SkRandom* random, /////////////////////////////////////////////////////////////////////////////// -GrGLSpecularLightingEffect::GrGLSpecularLightingEffect(const GrProgramStageFactory& factory, +GrGLSpecularLightingEffect::GrGLSpecularLightingEffect(const GrBackendEffectFactory& factory, const GrEffect& effect) : GrGLLightingEffect(factory, effect) , fKSUni(kInvalidUniformHandle) diff --git a/src/effects/SkMagnifierImageFilter.cpp b/src/effects/SkMagnifierImageFilter.cpp index 187fbe7991..67ae13c3ec 100644 --- a/src/effects/SkMagnifierImageFilter.cpp +++ b/src/effects/SkMagnifierImageFilter.cpp @@ -18,7 +18,7 @@ #include "gl/GrGLEffect.h" #include "gl/GrGLSL.h" #include "gl/GrGLTexture.h" -#include "GrProgramStageFactory.h" +#include "GrBackendEffectFactory.h" class GrGLMagnifierEffect; @@ -44,7 +44,7 @@ public: static const char* Name() { return "Magnifier"; } - virtual const GrProgramStageFactory& getFactory() const SK_OVERRIDE; + virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE; virtual bool isEqual(const GrEffect&) const SK_OVERRIDE; float x_offset() const { return fXOffset; } @@ -74,7 +74,7 @@ typedef GrGLUniformManager::UniformHandle UniformHandle; class GrGLMagnifierEffect : public GrGLLegacyEffect { public: - GrGLMagnifierEffect(const GrProgramStageFactory& factory, + GrGLMagnifierEffect(const GrBackendEffectFactory& factory, const GrEffect& effect); virtual void setupVariables(GrGLShaderBuilder* state) SK_OVERRIDE; @@ -99,7 +99,7 @@ private: typedef GrGLLegacyEffect INHERITED; }; -GrGLMagnifierEffect::GrGLMagnifierEffect(const GrProgramStageFactory& factory, +GrGLMagnifierEffect::GrGLMagnifierEffect(const GrBackendEffectFactory& factory, const GrEffect& effect) : INHERITED(factory) , fOffsetVar(GrGLUniformManager::kInvalidUniformHandle) @@ -209,8 +209,8 @@ GrEffect* GrMagnifierEffect::TestCreate(SkRandom* random, /////////////////////////////////////////////////////////////////////////////// -const GrProgramStageFactory& GrMagnifierEffect::getFactory() const { - return GrTProgramStageFactory<GrMagnifierEffect>::getInstance(); +const GrBackendEffectFactory& GrMagnifierEffect::getFactory() const { + return GrTBackendEffectFactory<GrMagnifierEffect>::getInstance(); } bool GrMagnifierEffect::isEqual(const GrEffect& sBase) const { diff --git a/src/effects/SkMatrixConvolutionImageFilter.cpp b/src/effects/SkMatrixConvolutionImageFilter.cpp index 607d8c8feb..c650539b86 100644 --- a/src/effects/SkMatrixConvolutionImageFilter.cpp +++ b/src/effects/SkMatrixConvolutionImageFilter.cpp @@ -262,7 +262,7 @@ public: typedef GrGLMatrixConvolutionEffect GLEffect; - virtual const GrProgramStageFactory& getFactory() const SK_OVERRIDE; + virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE; virtual bool isEqual(const GrEffect&) const SK_OVERRIDE; private: @@ -281,7 +281,7 @@ private: class GrGLMatrixConvolutionEffect : public GrGLLegacyEffect { public: - GrGLMatrixConvolutionEffect(const GrProgramStageFactory& factory, + GrGLMatrixConvolutionEffect(const GrBackendEffectFactory& factory, const GrEffect& effect); virtual void setupVariables(GrGLShaderBuilder* builder) SK_OVERRIDE; virtual void emitVS(GrGLShaderBuilder* state, @@ -311,7 +311,7 @@ private: typedef GrGLLegacyEffect INHERITED; }; -GrGLMatrixConvolutionEffect::GrGLMatrixConvolutionEffect(const GrProgramStageFactory& factory, +GrGLMatrixConvolutionEffect::GrGLMatrixConvolutionEffect(const GrBackendEffectFactory& factory, const GrEffect& effect) : INHERITED(factory) , fKernelUni(GrGLUniformManager::kInvalidUniformHandle) @@ -469,8 +469,8 @@ GrMatrixConvolutionEffect::~GrMatrixConvolutionEffect() { delete[] fKernel; } -const GrProgramStageFactory& GrMatrixConvolutionEffect::getFactory() const { - return GrTProgramStageFactory<GrMatrixConvolutionEffect>::getInstance(); +const GrBackendEffectFactory& GrMatrixConvolutionEffect::getFactory() const { + return GrTBackendEffectFactory<GrMatrixConvolutionEffect>::getInstance(); } bool GrMatrixConvolutionEffect::isEqual(const GrEffect& sBase) const { diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp index 8eaf86a152..d623c6f059 100644 --- a/src/effects/SkMorphologyImageFilter.cpp +++ b/src/effects/SkMorphologyImageFilter.cpp @@ -251,7 +251,7 @@ public: typedef GrGLMorphologyEffect GLEffect; - virtual const GrProgramStageFactory& getFactory() const SK_OVERRIDE; + virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE; virtual bool isEqual(const GrEffect&) const SK_OVERRIDE; protected: @@ -268,7 +268,7 @@ private: class GrGLMorphologyEffect : public GrGLLegacyEffect { public: - GrGLMorphologyEffect (const GrProgramStageFactory& factory, + GrGLMorphologyEffect (const GrBackendEffectFactory& factory, const GrEffect& effect); virtual void setupVariables(GrGLShaderBuilder* builder) SK_OVERRIDE; @@ -293,7 +293,7 @@ private: typedef GrGLLegacyEffect INHERITED; }; -GrGLMorphologyEffect::GrGLMorphologyEffect(const GrProgramStageFactory& factory, +GrGLMorphologyEffect::GrGLMorphologyEffect(const GrBackendEffectFactory& factory, const GrEffect& effect) : INHERITED(factory) , fImageIncrementUni(GrGLUniformManager::kInvalidUniformHandle) { @@ -383,8 +383,8 @@ GrMorphologyEffect::GrMorphologyEffect(GrTexture* texture, GrMorphologyEffect::~GrMorphologyEffect() { } -const GrProgramStageFactory& GrMorphologyEffect::getFactory() const { - return GrTProgramStageFactory<GrMorphologyEffect>::getInstance(); +const GrBackendEffectFactory& GrMorphologyEffect::getFactory() const { + return GrTBackendEffectFactory<GrMorphologyEffect>::getInstance(); } bool GrMorphologyEffect::isEqual(const GrEffect& sBase) const { diff --git a/src/effects/SkTableColorFilter.cpp b/src/effects/SkTableColorFilter.cpp index 39e37621e9..fe90f022f1 100644 --- a/src/effects/SkTableColorFilter.cpp +++ b/src/effects/SkTableColorFilter.cpp @@ -229,7 +229,7 @@ public: virtual ~ColorTableEffect(); static const char* Name() { return "ColorTable"; } - virtual const GrProgramStageFactory& getFactory() const SK_OVERRIDE; + virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE; virtual bool isEqual(const GrEffect&) const SK_OVERRIDE; virtual const GrTextureAccess& textureAccess(int index) const SK_OVERRIDE; @@ -246,7 +246,7 @@ private: class GLColorTableEffect : public GrGLLegacyEffect { public: - GLColorTableEffect(const GrProgramStageFactory& factory, + GLColorTableEffect(const GrBackendEffectFactory& factory, const GrEffect& effect); virtual void setupVariables(GrGLShaderBuilder* state) SK_OVERRIDE {} @@ -267,7 +267,7 @@ private: }; GLColorTableEffect::GLColorTableEffect( - const GrProgramStageFactory& factory, const GrEffect& effect) + const GrBackendEffectFactory& factory, const GrEffect& effect) : INHERITED(factory) { } @@ -327,8 +327,8 @@ ColorTableEffect::ColorTableEffect(GrTexture* texture) ColorTableEffect::~ColorTableEffect() { } -const GrProgramStageFactory& ColorTableEffect::getFactory() const { - return GrTProgramStageFactory<ColorTableEffect>::getInstance(); +const GrBackendEffectFactory& ColorTableEffect::getFactory() const { + return GrTBackendEffectFactory<ColorTableEffect>::getInstance(); } bool ColorTableEffect::isEqual(const GrEffect& sBase) const { diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp index 079623a02e..dfef878a33 100644 --- a/src/effects/gradients/SkGradientShader.cpp +++ b/src/effects/gradients/SkGradientShader.cpp @@ -675,7 +675,7 @@ SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END #include "effects/GrTextureStripAtlas.h" #include "SkGr.h" -GrGLGradientStage::GrGLGradientStage(const GrProgramStageFactory& factory) +GrGLGradientStage::GrGLGradientStage(const GrBackendEffectFactory& factory) : INHERITED(factory) , fCachedYCoord(GR_ScalarMax) , fFSYUni(GrGLUniformManager::kInvalidUniformHandle) { } diff --git a/src/effects/gradients/SkGradientShaderPriv.h b/src/effects/gradients/SkGradientShaderPriv.h index c24b3cb6f5..04f1aa1233 100644 --- a/src/effects/gradients/SkGradientShaderPriv.h +++ b/src/effects/gradients/SkGradientShaderPriv.h @@ -195,7 +195,7 @@ private: #include "gl/GrGLEffect.h" class GrSamplerState; -class GrProgramStageFactory; +class GrBackendEffectFactory; /* * The intepretation of the texture matrix depends on the sample mode. The @@ -274,7 +274,7 @@ private: class GrGLGradientStage : public GrGLLegacyEffect { public: - GrGLGradientStage(const GrProgramStageFactory& factory); + GrGLGradientStage(const GrBackendEffectFactory& factory); virtual ~GrGLGradientStage(); virtual void setupVariables(GrGLShaderBuilder* builder) SK_OVERRIDE; diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp index 26079c3b27..1154d13f32 100644 --- a/src/effects/gradients/SkLinearGradient.cpp +++ b/src/effects/gradients/SkLinearGradient.cpp @@ -479,7 +479,7 @@ void SkLinearGradient::shadeSpan16(int x, int y, class GrGLLinearGradient : public GrGLGradientStage { public: - GrGLLinearGradient(const GrProgramStageFactory& factory, + GrGLLinearGradient(const GrBackendEffectFactory& factory, const GrEffect&) : INHERITED (factory) { } @@ -508,8 +508,8 @@ public: virtual ~GrLinearGradient() { } static const char* Name() { return "Linear Gradient"; } - const GrProgramStageFactory& getFactory() const SK_OVERRIDE { - return GrTProgramStageFactory<GrLinearGradient>::getInstance(); + const GrBackendEffectFactory& getFactory() const SK_OVERRIDE { + return GrTBackendEffectFactory<GrLinearGradient>::getInstance(); } typedef GrGLLinearGradient GLEffect; diff --git a/src/effects/gradients/SkRadialGradient.cpp b/src/effects/gradients/SkRadialGradient.cpp index 6cbc412c43..dac1dc070b 100644 --- a/src/effects/gradients/SkRadialGradient.cpp +++ b/src/effects/gradients/SkRadialGradient.cpp @@ -476,7 +476,7 @@ void SkRadialGradient::shadeSpan(int x, int y, class GrGLRadialGradient : public GrGLGradientStage { public: - GrGLRadialGradient(const GrProgramStageFactory& factory, + GrGLRadialGradient(const GrBackendEffectFactory& factory, const GrEffect&) : INHERITED (factory) { } virtual ~GrGLRadialGradient() { } @@ -507,8 +507,8 @@ public: virtual ~GrRadialGradient() { } static const char* Name() { return "Radial Gradient"; } - virtual const GrProgramStageFactory& getFactory() const SK_OVERRIDE { - return GrTProgramStageFactory<GrRadialGradient>::getInstance(); + virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE { + return GrTBackendEffectFactory<GrRadialGradient>::getInstance(); } typedef GrGLRadialGradient GLEffect; diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp index 4b7ea8822b..768f59d5de 100644 --- a/src/effects/gradients/SkSweepGradient.cpp +++ b/src/effects/gradients/SkSweepGradient.cpp @@ -385,7 +385,7 @@ void SkSweepGradient::shadeSpan16(int x, int y, uint16_t* SK_RESTRICT dstC, class GrGLSweepGradient : public GrGLGradientStage { public: - GrGLSweepGradient(const GrProgramStageFactory& factory, + GrGLSweepGradient(const GrBackendEffectFactory& factory, const GrEffect&) : INHERITED (factory) { } virtual ~GrGLSweepGradient() { } @@ -415,8 +415,8 @@ public: virtual ~GrSweepGradient() { } static const char* Name() { return "Sweep Gradient"; } - virtual const GrProgramStageFactory& getFactory() const SK_OVERRIDE { - return GrTProgramStageFactory<GrSweepGradient>::getInstance(); + virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE { + return GrTBackendEffectFactory<GrSweepGradient>::getInstance(); } typedef GrGLSweepGradient GLEffect; diff --git a/src/effects/gradients/SkTwoPointConicalGradient.cpp b/src/effects/gradients/SkTwoPointConicalGradient.cpp index e1a7cf5f97..4150d2cdf6 100644 --- a/src/effects/gradients/SkTwoPointConicalGradient.cpp +++ b/src/effects/gradients/SkTwoPointConicalGradient.cpp @@ -322,7 +322,7 @@ static const UniformHandle kInvalidUniformHandle = GrGLUniformManager::kInvalidU class GrGLConical2Gradient : public GrGLGradientStage { public: - GrGLConical2Gradient(const GrProgramStageFactory& factory, + GrGLConical2Gradient(const GrBackendEffectFactory& factory, const GrEffect&); virtual ~GrGLConical2Gradient() { } @@ -378,8 +378,8 @@ public: virtual ~GrConical2Gradient() { } static const char* Name() { return "Two-Point Conical Gradient"; } - virtual const GrProgramStageFactory& getFactory() const SK_OVERRIDE { - return GrTProgramStageFactory<GrConical2Gradient>::getInstance(); + virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE { + return GrTBackendEffectFactory<GrConical2Gradient>::getInstance(); } virtual bool isEqual(const GrEffect& sBase) const SK_OVERRIDE { const GrConical2Gradient& s = static_cast<const GrConical2Gradient&>(sBase); @@ -449,7 +449,7 @@ GrEffect* GrConical2Gradient::TestCreate(SkRandom* random, ///////////////////////////////////////////////////////////////////// GrGLConical2Gradient::GrGLConical2Gradient( - const GrProgramStageFactory& factory, + const GrBackendEffectFactory& factory, const GrEffect& baseData) : INHERITED(factory) , fVSParamUni(kInvalidUniformHandle) diff --git a/src/effects/gradients/SkTwoPointRadialGradient.cpp b/src/effects/gradients/SkTwoPointRadialGradient.cpp index adca94f17e..e36727611c 100644 --- a/src/effects/gradients/SkTwoPointRadialGradient.cpp +++ b/src/effects/gradients/SkTwoPointRadialGradient.cpp @@ -357,7 +357,7 @@ class GrGLRadial2Gradient : public GrGLGradientStage { public: - GrGLRadial2Gradient(const GrProgramStageFactory& factory, + GrGLRadial2Gradient(const GrBackendEffectFactory& factory, const GrEffect&); virtual ~GrGLRadial2Gradient() { } @@ -410,8 +410,8 @@ public: virtual ~GrRadial2Gradient() { } static const char* Name() { return "Two-Point Radial Gradient"; } - virtual const GrProgramStageFactory& getFactory() const SK_OVERRIDE { - return GrTProgramStageFactory<GrRadial2Gradient>::getInstance(); + virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE { + return GrTBackendEffectFactory<GrRadial2Gradient>::getInstance(); } virtual bool isEqual(const GrEffect& sBase) const SK_OVERRIDE { const GrRadial2Gradient& s = static_cast<const GrRadial2Gradient&>(sBase); @@ -482,7 +482,7 @@ GrEffect* GrRadial2Gradient::TestCreate(SkRandom* random, ///////////////////////////////////////////////////////////////////// GrGLRadial2Gradient::GrGLRadial2Gradient( - const GrProgramStageFactory& factory, + const GrBackendEffectFactory& factory, const GrEffect& baseData) : INHERITED(factory) , fVSParamUni(kInvalidUniformHandle) |