diff options
Diffstat (limited to 'src/gpu/effects')
24 files changed, 42 insertions, 42 deletions
diff --git a/src/gpu/effects/GrBezierEffect.cpp b/src/gpu/effects/GrBezierEffect.cpp index d6044cb34a..9a60b2f1db 100644 --- a/src/gpu/effects/GrBezierEffect.cpp +++ b/src/gpu/effects/GrBezierEffect.cpp @@ -141,7 +141,7 @@ GrConicEffect::GrConicEffect(GrPrimitiveEdgeType edgeType) GrShaderVar::kAttribute_TypeModifier))) { } -bool GrConicEffect::onIsEqual(const GrProcessor& other) const { +bool GrConicEffect::onIsEqual(const GrGeometryProcessor& other) const { const GrConicEffect& ce = other.cast<GrConicEffect>(); return (ce.fEdgeType == fEdgeType); } @@ -279,7 +279,7 @@ GrQuadEffect::GrQuadEffect(GrPrimitiveEdgeType edgeType) GrShaderVar::kAttribute_TypeModifier))) { } -bool GrQuadEffect::onIsEqual(const GrProcessor& other) const { +bool GrQuadEffect::onIsEqual(const GrGeometryProcessor& other) const { const GrQuadEffect& ce = other.cast<GrQuadEffect>(); return (ce.fEdgeType == fEdgeType); } @@ -459,7 +459,7 @@ GrCubicEffect::GrCubicEffect(GrPrimitiveEdgeType edgeType) GrShaderVar::kAttribute_TypeModifier))) { } -bool GrCubicEffect::onIsEqual(const GrProcessor& other) const { +bool GrCubicEffect::onIsEqual(const GrGeometryProcessor& other) const { const GrCubicEffect& ce = other.cast<GrCubicEffect>(); return (ce.fEdgeType == fEdgeType); } diff --git a/src/gpu/effects/GrBezierEffect.h b/src/gpu/effects/GrBezierEffect.h index e6751db028..df06fba15a 100644 --- a/src/gpu/effects/GrBezierEffect.h +++ b/src/gpu/effects/GrBezierEffect.h @@ -102,7 +102,7 @@ public: private: GrConicEffect(GrPrimitiveEdgeType); - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; + virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE { inout->mulByUnknownAlpha(); @@ -174,7 +174,7 @@ public: private: GrQuadEffect(GrPrimitiveEdgeType); - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; + virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE { inout->mulByUnknownAlpha(); @@ -248,7 +248,7 @@ public: private: GrCubicEffect(GrPrimitiveEdgeType); - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; + virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE { inout->mulByUnknownAlpha(); diff --git a/src/gpu/effects/GrBicubicEffect.cpp b/src/gpu/effects/GrBicubicEffect.cpp index 75a0861b1a..7a47a4f082 100644 --- a/src/gpu/effects/GrBicubicEffect.cpp +++ b/src/gpu/effects/GrBicubicEffect.cpp @@ -162,7 +162,7 @@ const GrBackendFragmentProcessorFactory& GrBicubicEffect::getFactory() const { return GrTBackendFragmentProcessorFactory<GrBicubicEffect>::getInstance(); } -bool GrBicubicEffect::onIsEqual(const GrProcessor& sBase) const { +bool GrBicubicEffect::onIsEqual(const GrFragmentProcessor& sBase) const { const GrBicubicEffect& s = sBase.cast<GrBicubicEffect>(); return this->textureAccess(0) == s.textureAccess(0) && !memcmp(fCoefficients, s.coefficients(), 16) && diff --git a/src/gpu/effects/GrBicubicEffect.h b/src/gpu/effects/GrBicubicEffect.h index e36aa8d1d5..642f7cfc5a 100644 --- a/src/gpu/effects/GrBicubicEffect.h +++ b/src/gpu/effects/GrBicubicEffect.h @@ -90,7 +90,7 @@ private: const SkMatrix &matrix, const SkShader::TileMode tileModes[2]); GrBicubicEffect(GrTexture*, const SkScalar coefficients[16], const SkMatrix &matrix, const SkRect& domain); - virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; + virtual bool onIsEqual(const GrFragmentProcessor&) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp index fb66cf443a..dec3f9d01a 100644 --- a/src/gpu/effects/GrConfigConversionEffect.cpp +++ b/src/gpu/effects/GrConfigConversionEffect.cpp @@ -119,7 +119,7 @@ const GrBackendFragmentProcessorFactory& GrConfigConversionEffect::getFactory() return GrTBackendFragmentProcessorFactory<GrConfigConversionEffect>::getInstance(); } -bool GrConfigConversionEffect::onIsEqual(const GrProcessor& s) const { +bool GrConfigConversionEffect::onIsEqual(const GrFragmentProcessor& s) const { const GrConfigConversionEffect& other = s.cast<GrConfigConversionEffect>(); return this->texture(0) == s.texture(0) && other.fSwapRedAndBlue == fSwapRedAndBlue && diff --git a/src/gpu/effects/GrConfigConversionEffect.h b/src/gpu/effects/GrConfigConversionEffect.h index 8c65dce506..e1fd7d397c 100644 --- a/src/gpu/effects/GrConfigConversionEffect.h +++ b/src/gpu/effects/GrConfigConversionEffect.h @@ -61,7 +61,7 @@ private: PMConversion pmConversion, const SkMatrix& matrix); - virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; + virtual bool onIsEqual(const GrFragmentProcessor&) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; diff --git a/src/gpu/effects/GrConvexPolyEffect.cpp b/src/gpu/effects/GrConvexPolyEffect.cpp index 87d1286bbf..bafa64d13a 100644 --- a/src/gpu/effects/GrConvexPolyEffect.cpp +++ b/src/gpu/effects/GrConvexPolyEffect.cpp @@ -38,7 +38,7 @@ private: this->setWillReadFragmentPosition(); } - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE { + virtual bool onIsEqual(const GrFragmentProcessor& other) const SK_OVERRIDE { const AARectEffect& aare = other.cast<AARectEffect>(); return fRect == aare.fRect; } @@ -348,7 +348,7 @@ GrConvexPolyEffect::GrConvexPolyEffect(GrPrimitiveEdgeType edgeType, int n, cons this->setWillReadFragmentPosition(); } -bool GrConvexPolyEffect::onIsEqual(const GrProcessor& other) const { +bool GrConvexPolyEffect::onIsEqual(const GrFragmentProcessor& other) const { const GrConvexPolyEffect& cpe = other.cast<GrConvexPolyEffect>(); // ignore the fact that 0 == -0 and just use memcmp. return (cpe.fEdgeType == fEdgeType && cpe.fEdgeCount == fEdgeCount && diff --git a/src/gpu/effects/GrConvexPolyEffect.h b/src/gpu/effects/GrConvexPolyEffect.h index 7f76f797dc..ef96c87074 100644 --- a/src/gpu/effects/GrConvexPolyEffect.h +++ b/src/gpu/effects/GrConvexPolyEffect.h @@ -75,7 +75,7 @@ public: private: GrConvexPolyEffect(GrPrimitiveEdgeType edgeType, int n, const SkScalar edges[]); - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; + virtual bool onIsEqual(const GrFragmentProcessor& other) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; diff --git a/src/gpu/effects/GrConvolutionEffect.cpp b/src/gpu/effects/GrConvolutionEffect.cpp index 01c56f1163..9776a2af5f 100644 --- a/src/gpu/effects/GrConvolutionEffect.cpp +++ b/src/gpu/effects/GrConvolutionEffect.cpp @@ -200,7 +200,7 @@ const GrBackendFragmentProcessorFactory& GrConvolutionEffect::getFactory() const return GrTBackendFragmentProcessorFactory<GrConvolutionEffect>::getInstance(); } -bool GrConvolutionEffect::onIsEqual(const GrProcessor& sBase) const { +bool GrConvolutionEffect::onIsEqual(const GrFragmentProcessor& sBase) const { const GrConvolutionEffect& s = sBase.cast<GrConvolutionEffect>(); return (this->texture(0) == s.texture(0) && this->radius() == s.radius() && diff --git a/src/gpu/effects/GrConvolutionEffect.h b/src/gpu/effects/GrConvolutionEffect.h index 6c55656bc4..5f5800931a 100644 --- a/src/gpu/effects/GrConvolutionEffect.h +++ b/src/gpu/effects/GrConvolutionEffect.h @@ -95,7 +95,7 @@ private: bool useBounds, float bounds[2]); - virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; + virtual bool onIsEqual(const GrFragmentProcessor&) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const { // If the texture was opaque we could know that the output color if we knew the sum of the diff --git a/src/gpu/effects/GrCustomCoordsTextureEffect.cpp b/src/gpu/effects/GrCustomCoordsTextureEffect.cpp index 40ff1b1f77..896bfa5932 100644 --- a/src/gpu/effects/GrCustomCoordsTextureEffect.cpp +++ b/src/gpu/effects/GrCustomCoordsTextureEffect.cpp @@ -67,7 +67,7 @@ GrCustomCoordsTextureEffect::GrCustomCoordsTextureEffect(GrTexture* texture, this->addTextureAccess(&fTextureAccess); } -bool GrCustomCoordsTextureEffect::onIsEqual(const GrProcessor& other) const { +bool GrCustomCoordsTextureEffect::onIsEqual(const GrGeometryProcessor& other) const { const GrCustomCoordsTextureEffect& cte = other.cast<GrCustomCoordsTextureEffect>(); return fTextureAccess == cte.fTextureAccess; } diff --git a/src/gpu/effects/GrCustomCoordsTextureEffect.h b/src/gpu/effects/GrCustomCoordsTextureEffect.h index 0a6af7d4b4..3010ba245f 100644 --- a/src/gpu/effects/GrCustomCoordsTextureEffect.h +++ b/src/gpu/effects/GrCustomCoordsTextureEffect.h @@ -37,7 +37,7 @@ public: private: GrCustomCoordsTextureEffect(GrTexture* texture, const GrTextureParams& params); - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; + virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; diff --git a/src/gpu/effects/GrDashingEffect.cpp b/src/gpu/effects/GrDashingEffect.cpp index 7e20809cec..80735f0929 100644 --- a/src/gpu/effects/GrDashingEffect.cpp +++ b/src/gpu/effects/GrDashingEffect.cpp @@ -461,7 +461,7 @@ public: private: DashingCircleEffect(GrPrimitiveEdgeType edgeType, const DashInfo& info, SkScalar radius); - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; + virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; @@ -605,7 +605,7 @@ DashingCircleEffect::DashingCircleEffect(GrPrimitiveEdgeType edgeType, const Das fCenterX = SkScalarHalf(offLen); } -bool DashingCircleEffect::onIsEqual(const GrProcessor& other) const { +bool DashingCircleEffect::onIsEqual(const GrGeometryProcessor& other) const { const DashingCircleEffect& dce = other.cast<DashingCircleEffect>(); return (fEdgeType == dce.fEdgeType && fIntervalLength == dce.fIntervalLength && @@ -673,7 +673,7 @@ public: private: DashingLineEffect(GrPrimitiveEdgeType edgeType, const DashInfo& info, SkScalar strokeWidth); - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; + virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; @@ -829,7 +829,7 @@ DashingLineEffect::DashingLineEffect(GrPrimitiveEdgeType edgeType, const DashInf fRect.set(halfOffLen, -halfStroke, halfOffLen + onLen, halfStroke); } -bool DashingLineEffect::onIsEqual(const GrProcessor& other) const { +bool DashingLineEffect::onIsEqual(const GrGeometryProcessor& other) const { const DashingLineEffect& de = other.cast<DashingLineEffect>(); return (fEdgeType == de.fEdgeType && fRect == de.fRect && diff --git a/src/gpu/effects/GrDistanceFieldTextureEffect.cpp b/src/gpu/effects/GrDistanceFieldTextureEffect.cpp index 3374adcdd1..406f1b022d 100755 --- a/src/gpu/effects/GrDistanceFieldTextureEffect.cpp +++ b/src/gpu/effects/GrDistanceFieldTextureEffect.cpp @@ -196,7 +196,7 @@ GrDistanceFieldTextureEffect::GrDistanceFieldTextureEffect(GrTexture* texture, #endif } -bool GrDistanceFieldTextureEffect::onIsEqual(const GrProcessor& other) const { +bool GrDistanceFieldTextureEffect::onIsEqual(const GrGeometryProcessor& other) const { const GrDistanceFieldTextureEffect& cte = other.cast<GrDistanceFieldTextureEffect>(); return fTextureAccess == cte.fTextureAccess && #ifdef SK_GAMMA_APPLY_TO_A8 @@ -379,7 +379,7 @@ GrDistanceFieldNoGammaTextureEffect::GrDistanceFieldNoGammaTextureEffect(GrTextu this->addTextureAccess(&fTextureAccess); } -bool GrDistanceFieldNoGammaTextureEffect::onIsEqual(const GrProcessor& other) const { +bool GrDistanceFieldNoGammaTextureEffect::onIsEqual(const GrGeometryProcessor& other) const { const GrDistanceFieldNoGammaTextureEffect& cte = other.cast<GrDistanceFieldNoGammaTextureEffect>(); return fTextureAccess == cte.fTextureAccess && fFlags == cte.fFlags; @@ -628,7 +628,7 @@ GrDistanceFieldLCDTextureEffect::GrDistanceFieldLCDTextureEffect( this->addTextureAccess(&fGammaTextureAccess); } -bool GrDistanceFieldLCDTextureEffect::onIsEqual(const GrProcessor& other) const { +bool GrDistanceFieldLCDTextureEffect::onIsEqual(const GrGeometryProcessor& other) const { const GrDistanceFieldLCDTextureEffect& cte = other.cast<GrDistanceFieldLCDTextureEffect>(); return (fTextureAccess == cte.fTextureAccess && fGammaTextureAccess == cte.fGammaTextureAccess && diff --git a/src/gpu/effects/GrDistanceFieldTextureEffect.h b/src/gpu/effects/GrDistanceFieldTextureEffect.h index a49102d12a..c24673bd27 100644 --- a/src/gpu/effects/GrDistanceFieldTextureEffect.h +++ b/src/gpu/effects/GrDistanceFieldTextureEffect.h @@ -76,7 +76,7 @@ private: #endif uint32_t flags); - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; + virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; @@ -122,7 +122,7 @@ private: GrDistanceFieldNoGammaTextureEffect(GrTexture* texture, const GrTextureParams& params, uint32_t flags); - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; + virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; @@ -168,7 +168,7 @@ private: SkColor textColor, uint32_t flags); - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; + virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; diff --git a/src/gpu/effects/GrDitherEffect.cpp b/src/gpu/effects/GrDitherEffect.cpp index 96cdd75048..0e7df5e73d 100644 --- a/src/gpu/effects/GrDitherEffect.cpp +++ b/src/gpu/effects/GrDitherEffect.cpp @@ -40,7 +40,7 @@ private: } // All dither effects are equal - virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE { return true; } + virtual bool onIsEqual(const GrFragmentProcessor&) const SK_OVERRIDE { return true; } virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; diff --git a/src/gpu/effects/GrMatrixConvolutionEffect.cpp b/src/gpu/effects/GrMatrixConvolutionEffect.cpp index 07b48513dc..1f982672c4 100644 --- a/src/gpu/effects/GrMatrixConvolutionEffect.cpp +++ b/src/gpu/effects/GrMatrixConvolutionEffect.cpp @@ -176,7 +176,7 @@ const GrBackendFragmentProcessorFactory& GrMatrixConvolutionEffect::getFactory() return GrTBackendFragmentProcessorFactory<GrMatrixConvolutionEffect>::getInstance(); } -bool GrMatrixConvolutionEffect::onIsEqual(const GrProcessor& sBase) const { +bool GrMatrixConvolutionEffect::onIsEqual(const GrFragmentProcessor& sBase) const { const GrMatrixConvolutionEffect& s = sBase.cast<GrMatrixConvolutionEffect>(); return this->texture(0) == s.texture(0) && fKernelSize == s.kernelSize() && diff --git a/src/gpu/effects/GrMatrixConvolutionEffect.h b/src/gpu/effects/GrMatrixConvolutionEffect.h index c653230303..5aee6c53af 100644 --- a/src/gpu/effects/GrMatrixConvolutionEffect.h +++ b/src/gpu/effects/GrMatrixConvolutionEffect.h @@ -77,7 +77,7 @@ private: GrTextureDomain::Mode tileMode, bool convolveAlpha); - virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; + virtual bool onIsEqual(const GrFragmentProcessor&) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE { // TODO: Try to do better? diff --git a/src/gpu/effects/GrOvalEffect.cpp b/src/gpu/effects/GrOvalEffect.cpp index 3d8f207b9f..8965c990c0 100644 --- a/src/gpu/effects/GrOvalEffect.cpp +++ b/src/gpu/effects/GrOvalEffect.cpp @@ -37,7 +37,7 @@ public: private: CircleEffect(GrPrimitiveEdgeType, const SkPoint& center, SkScalar radius); - virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; + virtual bool onIsEqual(const GrFragmentProcessor&) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; @@ -71,7 +71,7 @@ CircleEffect::CircleEffect(GrPrimitiveEdgeType edgeType, const SkPoint& c, SkSca this->setWillReadFragmentPosition(); } -bool CircleEffect::onIsEqual(const GrProcessor& other) const { +bool CircleEffect::onIsEqual(const GrFragmentProcessor& other) const { const CircleEffect& ce = other.cast<CircleEffect>(); return fEdgeType == ce.fEdgeType && fCenter == ce.fCenter && fRadius == ce.fRadius; } @@ -209,7 +209,7 @@ public: private: EllipseEffect(GrPrimitiveEdgeType, const SkPoint& center, SkScalar rx, SkScalar ry); - virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; + virtual bool onIsEqual(const GrFragmentProcessor&) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; @@ -245,7 +245,7 @@ EllipseEffect::EllipseEffect(GrPrimitiveEdgeType edgeType, const SkPoint& c, SkS this->setWillReadFragmentPosition(); } -bool EllipseEffect::onIsEqual(const GrProcessor& other) const { +bool EllipseEffect::onIsEqual(const GrFragmentProcessor& other) const { const EllipseEffect& ee = other.cast<EllipseEffect>(); return fEdgeType == ee.fEdgeType && fCenter == ee.fCenter && fRadii == ee.fRadii; } diff --git a/src/gpu/effects/GrRRectEffect.cpp b/src/gpu/effects/GrRRectEffect.cpp index ae1daef858..2f4ff2b5b6 100644 --- a/src/gpu/effects/GrRRectEffect.cpp +++ b/src/gpu/effects/GrRRectEffect.cpp @@ -64,7 +64,7 @@ public: private: CircularRRectEffect(GrPrimitiveEdgeType, uint32_t circularCornerFlags, const SkRRect&); - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; + virtual bool onIsEqual(const GrFragmentProcessor& other) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; @@ -102,7 +102,7 @@ CircularRRectEffect::CircularRRectEffect(GrPrimitiveEdgeType edgeType, uint32_t this->setWillReadFragmentPosition(); } -bool CircularRRectEffect::onIsEqual(const GrProcessor& other) const { +bool CircularRRectEffect::onIsEqual(const GrFragmentProcessor& other) const { const CircularRRectEffect& crre = other.cast<CircularRRectEffect>(); // The corner flags are derived from fRRect, so no need to check them. return fEdgeType == crre.fEdgeType && fRRect == crre.fRRect; @@ -404,7 +404,7 @@ public: private: EllipticalRRectEffect(GrPrimitiveEdgeType, const SkRRect&); - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; + virtual bool onIsEqual(const GrFragmentProcessor& other) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; @@ -438,7 +438,7 @@ EllipticalRRectEffect::EllipticalRRectEffect(GrPrimitiveEdgeType edgeType, const this->setWillReadFragmentPosition(); } -bool EllipticalRRectEffect::onIsEqual(const GrProcessor& other) const { +bool EllipticalRRectEffect::onIsEqual(const GrFragmentProcessor& other) const { const EllipticalRRectEffect& erre = other.cast<EllipticalRRectEffect>(); return fEdgeType == erre.fEdgeType && fRRect == erre.fRRect; } diff --git a/src/gpu/effects/GrSimpleTextureEffect.h b/src/gpu/effects/GrSimpleTextureEffect.h index 88c5ca21a1..565b1eadac 100644 --- a/src/gpu/effects/GrSimpleTextureEffect.h +++ b/src/gpu/effects/GrSimpleTextureEffect.h @@ -68,7 +68,7 @@ private: : GrSingleTextureEffect(texture, matrix, params, coordSet) { } - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE { + virtual bool onIsEqual(const GrFragmentProcessor& other) const SK_OVERRIDE { const GrSimpleTextureEffect& ste = other.cast<GrSimpleTextureEffect>(); return this->hasSameTextureParamsMatrixAndSourceCoords(ste); } diff --git a/src/gpu/effects/GrTextureDomain.cpp b/src/gpu/effects/GrTextureDomain.cpp index 596415ea20..647aed48f9 100644 --- a/src/gpu/effects/GrTextureDomain.cpp +++ b/src/gpu/effects/GrTextureDomain.cpp @@ -263,7 +263,7 @@ const GrBackendFragmentProcessorFactory& GrTextureDomainEffect::getFactory() con return GrTBackendFragmentProcessorFactory<GrTextureDomainEffect>::getInstance(); } -bool GrTextureDomainEffect::onIsEqual(const GrProcessor& sBase) const { +bool GrTextureDomainEffect::onIsEqual(const GrFragmentProcessor& sBase) const { const GrTextureDomainEffect& s = sBase.cast<GrTextureDomainEffect>(); return this->hasSameTextureParamsMatrixAndSourceCoords(s) && this->fTextureDomain == s.fTextureDomain; diff --git a/src/gpu/effects/GrTextureDomain.h b/src/gpu/effects/GrTextureDomain.h index ec86847925..6f56f91838 100644 --- a/src/gpu/effects/GrTextureDomain.h +++ b/src/gpu/effects/GrTextureDomain.h @@ -173,7 +173,7 @@ private: GrTextureParams::FilterMode, GrCoordSet); - virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE; + virtual bool onIsEqual(const GrFragmentProcessor&) const SK_OVERRIDE; virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; diff --git a/src/gpu/effects/GrYUVtoRGBEffect.cpp b/src/gpu/effects/GrYUVtoRGBEffect.cpp index e3d25a2f1d..f280d1bdd4 100644 --- a/src/gpu/effects/GrYUVtoRGBEffect.cpp +++ b/src/gpu/effects/GrYUVtoRGBEffect.cpp @@ -102,7 +102,7 @@ private: this->setWillNotUseInputColor(); } - virtual bool onIsEqual(const GrProcessor& sBase) const { + virtual bool onIsEqual(const GrFragmentProcessor& sBase) const { const YUVtoRGBEffect& s = sBase.cast<YUVtoRGBEffect>(); return fYAccess.getTexture() == s.fYAccess.getTexture() && fUAccess.getTexture() == s.fUAccess.getTexture() && |