| Index: src/gpu/effects/GrConvolutionEffect.h
|
| diff --git a/src/gpu/effects/GrConvolutionEffect.h b/src/gpu/effects/GrConvolutionEffect.h
|
| index f61f378ec24e51f5889a2c7bd3fc195b5cc271f6..f2a2d5a779d484a1e38a7448933c57d814f3d3d0 100644
|
| --- a/src/gpu/effects/GrConvolutionEffect.h
|
| +++ b/src/gpu/effects/GrConvolutionEffect.h
|
| @@ -64,6 +64,12 @@
|
|
|
| virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERRIDE;
|
|
|
| + virtual void getConstantColorComponents(GrColor*, uint32_t* validFlags) const {
|
| + // If the texture was opaque we could know that the output color if we knew the sum of the
|
| + // kernel values.
|
| + *validFlags = 0;
|
| + }
|
| +
|
| enum {
|
| // This was decided based on the min allowed value for the max texture
|
| // samples per fragment program run in DX9SM2 (32). A sigma param of 4.0
|
| @@ -97,13 +103,6 @@
|
|
|
| virtual bool onIsEqual(const GrProcessor&) 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
|
| - // kernel values.
|
| - inout->fValidFlags = 0;
|
| - inout->fIsSingleComponent = false;
|
| - }
|
| -
|
| GR_DECLARE_FRAGMENT_PROCESSOR_TEST;
|
|
|
| typedef Gr1DKernelEffect INHERITED;
|
|
|