Index: src/gpu/effects/GrConvexPolyEffect.cpp |
diff --git a/src/gpu/effects/GrConvexPolyEffect.cpp b/src/gpu/effects/GrConvexPolyEffect.cpp |
index 4857a9e96d6231b5b75d91736f6cf11316a2a9a9..e8d20909e0049944e98bb5ed5923b082a8258566 100644 |
--- a/src/gpu/effects/GrConvexPolyEffect.cpp |
+++ b/src/gpu/effects/GrConvexPolyEffect.cpp |
@@ -29,17 +29,6 @@ public: |
return SkNEW_ARGS(AARectEffect, (edgeType, rect)); |
} |
- virtual void getConstantColorComponents(GrColor* color, |
- uint32_t* validFlags) const SK_OVERRIDE { |
- if (fRect.isEmpty()) { |
- // An empty rect will have no coverage anywhere. |
- *color = 0x00000000; |
- *validFlags = kRGBA_GrColorComponentFlags; |
- } else { |
- *validFlags = 0; |
- } |
- } |
- |
GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; } |
virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERRIDE; |
@@ -54,6 +43,17 @@ private: |
return fRect == aare.fRect; |
} |
+ virtual void onGetConstantColorComponents(GrColor* color, uint32_t* validFlags, |
+ bool* isSingleComponent) const SK_OVERRIDE { |
+ if (fRect.isEmpty()) { |
+ // An empty rect will have no coverage anywhere. |
+ *color = 0x00000000; |
+ *validFlags = kRGBA_GrColorComponentFlags; |
+ } else { |
+ *validFlags = 0; |
+ } |
+ } |
+ |
SkRect fRect; |
GrPrimitiveEdgeType fEdgeType; |
@@ -328,7 +328,8 @@ GrFragmentProcessor* GrConvexPolyEffect::Create(GrPrimitiveEdgeType edgeType, co |
GrConvexPolyEffect::~GrConvexPolyEffect() {} |
-void GrConvexPolyEffect::getConstantColorComponents(GrColor* color, uint32_t* validFlags) const { |
+void GrConvexPolyEffect::onGetConstantColorComponents(GrColor* color, uint32_t* validFlags, |
+ bool* isSingleComponent) const { |
*validFlags = 0; |
} |