| Index: src/effects/SkTableColorFilter.cpp
|
| diff --git a/src/effects/SkTableColorFilter.cpp b/src/effects/SkTableColorFilter.cpp
|
| index 4853f73e5c1e7461500b4906a6d145f9275ece65..377c0412af25ad1e20077c9d145c6fec013ffe88 100644
|
| --- a/src/effects/SkTableColorFilter.cpp
|
| +++ b/src/effects/SkTableColorFilter.cpp
|
| @@ -294,20 +294,21 @@ public:
|
| static const char* Name() { return "ColorTable"; }
|
| virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERRIDE;
|
|
|
| - virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags) const SK_OVERRIDE;
|
| -
|
| typedef GLColorTableEffect GLProcessor;
|
|
|
| private:
|
| virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE;
|
|
|
| + virtual void onGetConstantColorComponents(GrColor* color, uint32_t* validFlags,
|
| + bool* isSingleComponent) const SK_OVERRIDE;
|
| +
|
| explicit ColorTableEffect(GrTexture* texture, unsigned flags);
|
|
|
| GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
|
|
|
| GrTextureAccess fTextureAccess;
|
| unsigned fFlags; // currently not used in shader code, just to assist
|
| - // getConstantColorComponents().
|
| + // onGetConstantColorComponents().
|
|
|
| typedef GrFragmentProcessor INHERITED;
|
| };
|
| @@ -401,7 +402,8 @@ bool ColorTableEffect::onIsEqual(const GrProcessor& sBase) const {
|
| return this->texture(0) == sBase.texture(0);
|
| }
|
|
|
| -void ColorTableEffect::getConstantColorComponents(GrColor* color, uint32_t* validFlags) const {
|
| +void ColorTableEffect::onGetConstantColorComponents(GrColor* color, uint32_t* validFlags,
|
| + bool* isSingleComponent) const {
|
| // If we kept the table in the effect then we could actually run known inputs through the
|
| // table.
|
| if (fFlags & SkTable_ColorFilter::kR_Flag) {
|
|
|