class GLSLProcessor : public GrGLSLFragmentProcessor {
public:
// this class always generates the same code.
- static void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder* b) {}
+ static void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder*) {}
- GLSLProcessor(const GrProcessor&) {}
-
- virtual void emitCode(EmitArgs& args) override {
+ void emitCode(EmitArgs& args) override {
GrGLSLUniformHandler* uniformHandler = args.fUniformHandler;
fMatrixHandle = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility,
kMat44f_GrSLType, kDefault_GrSLPrecision,
}
protected:
- virtual void onSetData(const GrGLSLProgramDataManager& uniManager,
- const GrProcessor& proc) override {
+ void onSetData(const GrGLSLProgramDataManager& uniManager,
+ const GrProcessor& proc) override {
const ColorMatrixEffect& cme = proc.cast<ColorMatrixEffect>();
const float* m = cme.fMatrix;
// The GL matrix is transposed from SkColorMatrix.
}
GrGLSLFragmentProcessor* onCreateGLSLInstance() const override {
- return new GLSLProcessor(*this);
+ return new GLSLProcessor;
}
virtual void onGetGLSLProcessorKey(const GrGLSLCaps& caps,
class GrGLCircleBlurFragmentProcessor : public GrGLSLFragmentProcessor {
public:
- GrGLCircleBlurFragmentProcessor(const GrProcessor&) {}
void emitCode(EmitArgs&) override;
protected:
}
GrGLSLFragmentProcessor* GrCircleBlurFragmentProcessor::onCreateGLSLInstance() const {
- return new GrGLCircleBlurFragmentProcessor(*this);
+ return new GrGLCircleBlurFragmentProcessor;
}
void GrCircleBlurFragmentProcessor::onGetGLSLProcessorKey(const GrGLSLCaps& caps,
class GrGLAlphaThresholdEffect : public GrGLSLFragmentProcessor {
public:
- GrGLAlphaThresholdEffect(const GrFragmentProcessor&) {}
-
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
protected:
void onSetData(const GrGLSLProgramDataManager&, const GrProcessor&) override;
}
GrGLSLFragmentProcessor* AlphaThresholdEffect::onCreateGLSLInstance() const {
- return new GrGLAlphaThresholdEffect(*this);
+ return new GrGLAlphaThresholdEffect;
}
bool AlphaThresholdEffect::onIsEqual(const GrFragmentProcessor& sBase) const {
class GLArithmeticFP : public GrGLSLFragmentProcessor {
public:
- GLArithmeticFP(const GrArithmeticFP& arithmeticFP)
- : fEnforcePMColor(arithmeticFP.enforcePMColor()) {}
-
- ~GLArithmeticFP() override {}
-
void emitCode(EmitArgs& args) override {
+ const GrArithmeticFP& arith = args.fFp.cast<GrArithmeticFP>();
+
GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder;
SkString dstColor("dstColor");
this->emitChild(0, nullptr, &dstColor, args);
dstColor.c_str(),
args.fOutputColor,
kUni,
- fEnforcePMColor);
+ arith.enforcePMColor());
}
static void GenKey(const GrProcessor& proc, const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) {
void onSetData(const GrGLSLProgramDataManager& pdman, const GrProcessor& proc) override {
const GrArithmeticFP& arith = proc.cast<GrArithmeticFP>();
pdman.set4f(fKUni, arith.k1(), arith.k2(), arith.k3(), arith.k4());
- fEnforcePMColor = arith.enforcePMColor();
}
private:
GrGLSLProgramDataManager::UniformHandle fKUni;
- bool fEnforcePMColor;
typedef GrGLSLFragmentProcessor INHERITED;
};
}
GrGLSLFragmentProcessor* GrArithmeticFP::onCreateGLSLInstance() const {
- return new GLArithmeticFP(*this);
+ return new GLArithmeticFP;
}
bool GrArithmeticFP::onIsEqual(const GrFragmentProcessor& fpBase) const {
class GrGLRRectBlurEffect : public GrGLSLFragmentProcessor {
public:
- GrGLRRectBlurEffect(const GrProcessor&) {}
-
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
protected:
void onSetData(const GrGLSLProgramDataManager&, const GrProcessor&) override;
}
GrGLSLFragmentProcessor* GrRRectBlurEffect::onCreateGLSLInstance() const {
- return new GrGLRRectBlurEffect(*this);
+ return new GrGLRRectBlurEffect;
}
bool SkBlurMaskFilterImpl::directFilterRRectMaskGPU(GrTextureProvider* texProvider,
class GLSLProcessor : public GrGLSLFragmentProcessor {
public:
- GLSLProcessor(const GrProcessor&);
- virtual ~GLSLProcessor();
-
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder*);
}
GrGLSLFragmentProcessor* GrColorCubeEffect::onCreateGLSLInstance() const {
- return new GLSLProcessor(*this);
+ return new GLSLProcessor;
}
void GrColorCubeEffect::onComputeInvariantOutput(GrInvariantOutput* inout) const {
///////////////////////////////////////////////////////////////////////////////
-GrColorCubeEffect::GLSLProcessor::GLSLProcessor(const GrProcessor&) {
-}
-
-GrColorCubeEffect::GLSLProcessor::~GLSLProcessor() {
-}
-
void GrColorCubeEffect::GLSLProcessor::emitCode(EmitArgs& args) {
if (nullptr == args.fInputColor) {
args.fInputColor = "vec4(1)";
class GrGLDisplacementMapEffect : public GrGLSLFragmentProcessor {
public:
GrGLDisplacementMapEffect(const GrProcessor&);
- virtual ~GrGLDisplacementMapEffect();
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder*);
, fYChannelSelector(proc.cast<GrDisplacementMapEffect>().yChannelSelector()) {
}
-GrGLDisplacementMapEffect::~GrGLDisplacementMapEffect() {
-}
-
void GrGLDisplacementMapEffect::emitCode(EmitArgs& args) {
const GrTextureDomain& domain = args.fFp.cast<GrDisplacementMapEffect>().domain();
class GLSLProcessor : public GrGLSLFragmentProcessor {
public:
- GLSLProcessor(const GrProcessor&) {}
-
static void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder* b) {}
- virtual void emitCode(EmitArgs& args) override {
+ void emitCode(EmitArgs& args) override {
if (nullptr == args.fInputColor) {
args.fInputColor = "vec4(1)";
}
}
GrGLSLFragmentProcessor* onCreateGLSLInstance() const override {
- return new GLSLProcessor(*this);
+ return new GLSLProcessor;
}
virtual void onGetGLSLProcessorKey(const GrGLSLCaps& caps,
class GrGLMagnifierEffect : public GrGLSLFragmentProcessor {
public:
- GrGLMagnifierEffect(const GrProcessor&);
-
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
protected:
void onSetData(const GrGLSLProgramDataManager&, const GrProcessor&) override;
typedef GrGLSLFragmentProcessor INHERITED;
};
-GrGLMagnifierEffect::GrGLMagnifierEffect(const GrProcessor&) {
-}
-
void GrGLMagnifierEffect::emitCode(EmitArgs& args) {
GrGLSLUniformHandler* uniformHandler = args.fUniformHandler;
fOffsetVar = uniformHandler->addUniform(GrGLSLUniformHandler::kFragment_Visibility,
}
GrGLSLFragmentProcessor* GrMagnifierEffect::onCreateGLSLInstance() const {
- return new GrGLMagnifierEffect(*this);
+ return new GrGLMagnifierEffect;
}
GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrMagnifierEffect);
public:
GrGLMorphologyEffect(const GrProcessor&);
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder* b);
class GrGLPerlinNoise : public GrGLSLFragmentProcessor {
public:
GrGLPerlinNoise(const GrProcessor&);
- virtual ~GrGLPerlinNoise() {}
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder* b);
int fNumOctaves;
GrGLSLProgramDataManager::UniformHandle fBaseFrequencyUni;
-private:
typedef GrGLSLFragmentProcessor INHERITED;
};
class GLPixelXorFP : public GrGLSLFragmentProcessor {
public:
- GLPixelXorFP(const PixelXorFP&) {}
-
- ~GLPixelXorFP() override {}
-
void emitCode(EmitArgs& args) override {
GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder;
SkString dstColor("dstColor");
///////////////////////////////////////////////////////////////////////////////
GrGLSLFragmentProcessor* PixelXorFP::onCreateGLSLInstance() const {
- return new GLPixelXorFP(*this);
+ return new GLPixelXorFP;
}
void PixelXorFP::onGetGLSLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const {
class GLColorTableEffect : public GrGLSLFragmentProcessor {
public:
- GLColorTableEffect(const GrProcessor&);
-
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
static void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder* b) {}
typedef GrGLSLFragmentProcessor INHERITED;
};
-GLColorTableEffect::GLColorTableEffect(const GrProcessor&) {
-}
-
void GLColorTableEffect::onSetData(const GrGLSLProgramDataManager& pdm, const GrProcessor& proc) {
// The textures are organized in a strip where the rows are ordered a, r, g, b.
float rgbaYValues[4];
}
GrGLSLFragmentProcessor* ColorTableEffect::onCreateGLSLInstance() const {
- return new GLColorTableEffect(*this);
+ return new GLColorTableEffect;
}
bool ColorTableEffect::onIsEqual(const GrFragmentProcessor& other) const {
: fCachedYCoord(SK_ScalarMax) {
}
-GrGLGradientEffect::~GrGLGradientEffect() { }
-
void GrGLGradientEffect::emitUniforms(GrGLSLUniformHandler* uniformHandler,
const GrGradientEffect& ge) {
class GrGLGradientEffect : public GrGLSLFragmentProcessor {
public:
GrGLGradientEffect();
- virtual ~GrGLGradientEffect();
protected:
void onSetData(const GrGLSLProgramDataManager&, const GrProcessor&) override;
GrGLSLFragmentProcessor* onCreateGLSLInstance() const override {
class GLFP : public GrGLSLFragmentProcessor {
public:
- GLFP() {}
-
void emitCode(EmitArgs& args) override {
GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder;
this->emitChild(0, nullptr, args);
GrGLSLFragmentProcessor* onCreateGLSLInstance() const override {
class GLFP : public GrGLSLFragmentProcessor {
public:
- GLFP() {}
void emitCode(EmitArgs& args) override {
SkString input(args.fInputColor);
for (int i = 0; i < this->numChildProcessors() - 1; ++i) {
class GrGLBicubicEffect : public GrGLSLFragmentProcessor {
public:
- GrGLBicubicEffect(const GrProcessor&);
-
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
static inline void GenKey(const GrProcessor& effect, const GrGLSLCaps&,
GrProcessorKeyBuilder* b) {
typedef GrGLSLFragmentProcessor INHERITED;
};
-GrGLBicubicEffect::GrGLBicubicEffect(const GrProcessor&) {
-}
-
void GrGLBicubicEffect::emitCode(EmitArgs& args) {
const GrTextureDomain& domain = args.fFp.cast<GrBicubicEffect>().domain();
}
GrGLSLFragmentProcessor* GrBicubicEffect::onCreateGLSLInstance() const {
- return new GrGLBicubicEffect(*this);
+ return new GrGLBicubicEffect;
}
bool GrBicubicEffect::onIsEqual(const GrFragmentProcessor& sBase) const {
class GrGLConfigConversionEffect : public GrGLSLFragmentProcessor {
public:
- GrGLConfigConversionEffect() {}
-
- virtual void emitCode(EmitArgs& args) override {
+ void emitCode(EmitArgs& args) override {
const GrConfigConversionEffect& cce = args.fFp.cast<GrConfigConversionEffect>();
const GrSwizzle& swizzle = cce.swizzle();
GrConfigConversionEffect::PMConversion pmConversion = cce.pmConversion();
class GLAARectEffect : public GrGLSLFragmentProcessor {
public:
- GLAARectEffect(const GrProcessor&);
+ GLAARectEffect() {
+ fPrevRect.fLeft = SK_ScalarNaN;
+ }
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder*);
typedef GrGLSLFragmentProcessor INHERITED;
};
-GLAARectEffect::GLAARectEffect(const GrProcessor& effect) {
- fPrevRect.fLeft = SK_ScalarNaN;
-}
-
void GLAARectEffect::emitCode(EmitArgs& args) {
const AARectEffect& aare = args.fFp.cast<AARectEffect>();
const char *rectName;
}
GrGLSLFragmentProcessor* AARectEffect::onCreateGLSLInstance() const {
- return new GLAARectEffect(*this);
+ return new GLAARectEffect;
}
//////////////////////////////////////////////////////////////////////////////
class GrGLConvexPolyEffect : public GrGLSLFragmentProcessor {
public:
- GrGLConvexPolyEffect(const GrProcessor&);
+ GrGLConvexPolyEffect() {
+ fPrevEdges[0] = SK_ScalarNaN;
+ }
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder*);
typedef GrGLSLFragmentProcessor INHERITED;
};
-GrGLConvexPolyEffect::GrGLConvexPolyEffect(const GrProcessor&) {
- fPrevEdges[0] = SK_ScalarNaN;
-}
-
void GrGLConvexPolyEffect::emitCode(EmitArgs& args) {
const GrConvexPolyEffect& cpe = args.fFp.cast<GrConvexPolyEffect>();
}
GrGLSLFragmentProcessor* GrConvexPolyEffect::onCreateGLSLInstance() const {
- return new GrGLConvexPolyEffect(*this);
+ return new GrGLConvexPolyEffect;
}
GrConvexPolyEffect::GrConvexPolyEffect(GrPrimitiveEdgeType edgeType, int n, const SkScalar edges[])
public:
GrGLConvolutionEffect(const GrProcessor&);
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder*);
class GLDitherEffect : public GrGLSLFragmentProcessor {
public:
- GLDitherEffect(const GrProcessor&);
-
- virtual void emitCode(EmitArgs& args) override;
+ void emitCode(EmitArgs& args) override;
private:
typedef GrGLSLFragmentProcessor INHERITED;
};
-GLDitherEffect::GLDitherEffect(const GrProcessor&) {
-}
-
void GLDitherEffect::emitCode(EmitArgs& args) {
GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder;
// Generate a random number based on the fragment position. For this
}
GrGLSLFragmentProcessor* DitherEffect::onCreateGLSLInstance() const {
- return new GLDitherEffect(*this);
+ return new GLDitherEffect;
}
GrFragmentProcessor* GrDitherEffect::Create() { return DitherEffect::Create(); }
class GrGLMatrixConvolutionEffect : public GrGLSLFragmentProcessor {
public:
GrGLMatrixConvolutionEffect(const GrProcessor&);
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder*);
class GLCircleEffect : public GrGLSLFragmentProcessor {
public:
- GLCircleEffect(const GrProcessor&);
+ GLCircleEffect() : fPrevRadius(-1.0f) { }
virtual void emitCode(EmitArgs&) override;
typedef GrGLSLFragmentProcessor INHERITED;
};
-GLCircleEffect::GLCircleEffect(const GrProcessor&) {
- fPrevRadius = -1.f;
-}
-
void GLCircleEffect::emitCode(EmitArgs& args) {
const CircleEffect& ce = args.fFp.cast<CircleEffect>();
const char *circleName;
}
GrGLSLFragmentProcessor* CircleEffect::onCreateGLSLInstance() const {
- return new GLCircleEffect(*this);
+ return new GLCircleEffect;
}
//////////////////////////////////////////////////////////////////////////////
class GLEllipseEffect : public GrGLSLFragmentProcessor {
public:
- GLEllipseEffect(const GrProcessor&);
+ GLEllipseEffect() {
+ fPrevRadii.fX = -1.0f;
+ }
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder*);
typedef GrGLSLFragmentProcessor INHERITED;
};
-GLEllipseEffect::GLEllipseEffect(const GrProcessor& effect) {
- fPrevRadii.fX = -1.f;
-}
-
void GLEllipseEffect::emitCode(EmitArgs& args) {
const EllipseEffect& ee = args.fFp.cast<EllipseEffect>();
const char *ellipseName;
}
GrGLSLFragmentProcessor* EllipseEffect::onCreateGLSLInstance() const {
- return new GLEllipseEffect(*this);
+ return new GLEllipseEffect;
}
//////////////////////////////////////////////////////////////////////////////
class GLCircularRRectEffect : public GrGLSLFragmentProcessor {
public:
- GLCircularRRectEffect(const GrProcessor&);
+ GLCircularRRectEffect() {
+ fPrevRRect.setEmpty();
+ }
virtual void emitCode(EmitArgs&) override;
typedef GrGLSLFragmentProcessor INHERITED;
};
-GLCircularRRectEffect::GLCircularRRectEffect(const GrProcessor& ) {
- fPrevRRect.setEmpty();
-}
-
void GLCircularRRectEffect::emitCode(EmitArgs& args) {
const CircularRRectEffect& crre = args.fFp.cast<CircularRRectEffect>();
GrGLSLUniformHandler* uniformHandler = args.fUniformHandler;
}
GrGLSLFragmentProcessor* CircularRRectEffect::onCreateGLSLInstance() const {
- return new GLCircularRRectEffect(*this);
+ return new GLCircularRRectEffect;
}
//////////////////////////////////////////////////////////////////////////////
class GLEllipticalRRectEffect : public GrGLSLFragmentProcessor {
public:
- GLEllipticalRRectEffect(const GrProcessor&);
+ GLEllipticalRRectEffect() {
+ fPrevRRect.setEmpty();
+ }
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder*);
typedef GrGLSLFragmentProcessor INHERITED;
};
-GLEllipticalRRectEffect::GLEllipticalRRectEffect(const GrProcessor& effect) {
- fPrevRRect.setEmpty();
-}
-
void GLEllipticalRRectEffect::emitCode(EmitArgs& args) {
const EllipticalRRectEffect& erre = args.fFp.cast<EllipticalRRectEffect>();
GrGLSLUniformHandler* uniformHandler = args.fUniformHandler;
}
GrGLSLFragmentProcessor* EllipticalRRectEffect::onCreateGLSLInstance() const {
- return new GLEllipticalRRectEffect(*this);
+ return new GLEllipticalRRectEffect;
}
//////////////////////////////////////////////////////////////////////////////
class GrGLSimpleTextureEffect : public GrGLSLFragmentProcessor {
public:
- GrGLSimpleTextureEffect(const GrProcessor&) {}
-
- virtual void emitCode(EmitArgs& args) override {
+ void emitCode(EmitArgs& args) override {
GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder;
fragBuilder->codeAppendf("\t%s = ", args.fOutputColor);
fragBuilder->appendTextureLookupAndModulate(args.fInputColor,
}
GrGLSLFragmentProcessor* GrSimpleTextureEffect::onCreateGLSLInstance() const {
- return new GrGLSimpleTextureEffect(*this);
+ return new GrGLSimpleTextureEffect;
}
///////////////////////////////////////////////////////////////////////////////
class GrGLTextureDomainEffect : public GrGLSLFragmentProcessor {
public:
- GrGLTextureDomainEffect(const GrProcessor&);
-
- virtual void emitCode(EmitArgs&) override;
+ void emitCode(EmitArgs&) override;
static inline void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder*);
typedef GrGLSLFragmentProcessor INHERITED;
};
-GrGLTextureDomainEffect::GrGLTextureDomainEffect(const GrProcessor&) {
-}
-
void GrGLTextureDomainEffect::emitCode(EmitArgs& args) {
const GrTextureDomainEffect& textureDomainEffect = args.fFp.cast<GrTextureDomainEffect>();
const GrTextureDomain& domain = textureDomainEffect.textureDomain();
}
GrGLSLFragmentProcessor* GrTextureDomainEffect::onCreateGLSLInstance() const {
- return new GrGLTextureDomainEffect(*this);
+ return new GrGLTextureDomainEffect;
}
bool GrTextureDomainEffect::onIsEqual(const GrFragmentProcessor& sBase) const {
class GLComposeTwoFragmentProcessor : public GrGLSLFragmentProcessor {
public:
- GLComposeTwoFragmentProcessor(const GrProcessor& processor) {}
-
void emitCode(EmitArgs&) override;
private:
}
GrGLSLFragmentProcessor* ComposeTwoFragmentProcessor::onCreateGLSLInstance() const{
- return new GLComposeTwoFragmentProcessor(*this);
+ return new GLComposeTwoFragmentProcessor;
}
/////////////////////////////////////////////////////////////////////
class GLComposeOneFragmentProcessor : public GrGLSLFragmentProcessor {
public:
- GLComposeOneFragmentProcessor(const GrProcessor& processor) {}
-
void emitCode(EmitArgs& args) override {
GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder;
SkXfermode::Mode mode = args.fFp.cast<ComposeOneFragmentProcessor>().mode();
}
GrGLSLFragmentProcessor* ComposeOneFragmentProcessor::onCreateGLSLInstance() const {
- return new GLComposeOneFragmentProcessor(*this);
+ return new GLComposeOneFragmentProcessor;
}
//////////////////////////////////////////////////////////////////////////////
// this class always generates the same code.
static void GenKey(const GrProcessor&, const GrGLSLCaps&, GrProcessorKeyBuilder*) {}
- GLSLProcessor(const GrProcessor&) {}
-
void emitCode(EmitArgs& args) override {
GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder;
}
GrGLSLFragmentProcessor* onCreateGLSLInstance() const override {
- return new GLSLProcessor(*this);
+ return new GLSLProcessor;
}
void onGetGLSLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const override {
class GLSLProcessor : public GrGLSLFragmentProcessor {
public:
- GLSLProcessor(const GrProcessor&) : fLastColorSpace(-1), fLastOutputChannels(-1) {}
+ GLSLProcessor() : fLastColorSpace(-1), fLastOutputChannels(-1) {}
void emitCode(EmitArgs& args) override {
GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder;
private:
GrGLSLFragmentProcessor* onCreateGLSLInstance() const override {
- return new GLSLProcessor(*this);
+ return new GLSLProcessor;
}
void onGetGLSLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const override {
class GLOverdrawFP : public GrGLSLFragmentProcessor {
public:
- GLOverdrawFP(const GrOverdrawFP&) {}
-
- ~GLOverdrawFP() override {}
-
void emitCode(EmitArgs& args) override {
GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder;
SkString dstColor("dstColor");
///////////////////////////////////////////////////////////////////////////////
GrGLSLFragmentProcessor* GrOverdrawFP::onCreateGLSLInstance() const {
- return new GLOverdrawFP(*this);
+ return new GLOverdrawFP;
}
void GrOverdrawFP::onGetGLSLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const {
class GLBigKeyProcessor : public GrGLSLFragmentProcessor {
public:
- GLBigKeyProcessor(const GrProcessor&) {}
-
- virtual void emitCode(EmitArgs& args) override {
+ void emitCode(EmitArgs& args) override {
// pass through
GrGLSLFragmentBuilder* fragBuilder = args.fFragBuilder;
if (args.fInputColor) {
const char* name() const override { return "Big Ole Key"; }
GrGLSLFragmentProcessor* onCreateGLSLInstance() const override {
- return new GLBigKeyProcessor(*this);
+ return new GLBigKeyProcessor;
}
private: