OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrConvolutionEffect_DEFINED | 8 #ifndef GrConvolutionEffect_DEFINED |
9 #define GrConvolutionEffect_DEFINED | 9 #define GrConvolutionEffect_DEFINED |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 int halfWidth, | 92 int halfWidth, |
93 float gaussianSigma, | 93 float gaussianSigma, |
94 bool useBounds, | 94 bool useBounds, |
95 float bounds[2]); | 95 float bounds[2]); |
96 | 96 |
97 virtual bool onIsEqual(const GrFragmentProcessor&) const SK_OVERRIDE; | 97 virtual bool onIsEqual(const GrFragmentProcessor&) const SK_OVERRIDE; |
98 | 98 |
99 virtual void onComputeInvariantOutput(GrInvariantOutput* inout) const { | 99 virtual void onComputeInvariantOutput(GrInvariantOutput* inout) const { |
100 // If the texture was opaque we could know that the output color if we k
new the sum of the | 100 // If the texture was opaque we could know that the output color if we k
new the sum of the |
101 // kernel values. | 101 // kernel values. |
102 inout->mulByUnknownColor(); | 102 inout->mulByUnknownFourComponents(); |
103 } | 103 } |
104 | 104 |
105 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; | 105 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; |
106 | 106 |
107 typedef Gr1DKernelEffect INHERITED; | 107 typedef Gr1DKernelEffect INHERITED; |
108 }; | 108 }; |
109 | 109 |
110 #endif | 110 #endif |
OLD | NEW |