Index: src/gpu/effects/GrRRectEffect.cpp |
diff --git a/src/gpu/effects/GrRRectEffect.cpp b/src/gpu/effects/GrRRectEffect.cpp |
index 0af564c844f651bac60ab2c5c81fc58fed95b303..f5131feba4bd3f7277378a2281694c9d021894d0 100644 |
--- a/src/gpu/effects/GrRRectEffect.cpp |
+++ b/src/gpu/effects/GrRRectEffect.cpp |
@@ -59,14 +59,14 @@ |
typedef GLCircularRRectEffect GLProcessor; |
+ virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags) const SK_OVERRIDE; |
+ |
virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERRIDE; |
private: |
CircularRRectEffect(GrPrimitiveEdgeType, uint32_t circularCornerFlags, const SkRRect&); |
virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; |
- |
- virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; |
SkRRect fRRect; |
GrPrimitiveEdgeType fEdgeType; |
@@ -86,9 +86,8 @@ |
return SkNEW_ARGS(CircularRRectEffect, (edgeType, circularCornerFlags, rrect)); |
} |
-void CircularRRectEffect::onComputeInvariantOutput(InvariantOutput* inout) const { |
- inout->fValidFlags = 0; |
- inout->fIsSingleComponent = false; |
+void CircularRRectEffect::getConstantColorComponents(GrColor* color, uint32_t* validFlags) const { |
+ *validFlags = 0; |
} |
const GrBackendFragmentProcessorFactory& CircularRRectEffect::getFactory() const { |
@@ -400,14 +399,14 @@ |
typedef GLEllipticalRRectEffect GLProcessor; |
+ virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags) const SK_OVERRIDE; |
+ |
virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERRIDE; |
private: |
EllipticalRRectEffect(GrPrimitiveEdgeType, const SkRRect&); |
virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE; |
- |
- virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE; |
SkRRect fRRect; |
GrPrimitiveEdgeType fEdgeType; |
@@ -425,9 +424,8 @@ |
return SkNEW_ARGS(EllipticalRRectEffect, (edgeType, rrect)); |
} |
-void EllipticalRRectEffect::onComputeInvariantOutput(InvariantOutput* inout) const { |
- inout->fValidFlags = 0; |
- inout->fIsSingleComponent = false; |
+void EllipticalRRectEffect::getConstantColorComponents(GrColor* color, uint32_t* validFlags) const { |
+ *validFlags = 0; |
} |
const GrBackendFragmentProcessorFactory& EllipticalRRectEffect::getFactory() const { |