diff options
author | 2014-10-13 12:53:46 -0700 | |
---|---|---|
committer | 2014-10-13 12:53:46 -0700 | |
commit | ccb2e384a036f29d989d3c1468f879324e81a678 (patch) | |
tree | 27e38ca2ad78e3a0f741a1cc6c23899eb22b822c /src/effects/SkLightingImageFilter.cpp | |
parent | cad5d3e264535c919b80e1e2a85407307961f221 (diff) |
Create helper functions to use in computeInvariantOutput calls
BUG=skia:
Review URL: https://codereview.chromium.org/643743003
Diffstat (limited to 'src/effects/SkLightingImageFilter.cpp')
-rw-r--r-- | src/effects/SkLightingImageFilter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp index e78fd622a0..b882456234 100644 --- a/src/effects/SkLightingImageFilter.cpp +++ b/src/effects/SkLightingImageFilter.cpp @@ -355,8 +355,7 @@ protected: virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE { // lighting shaders are complicated. We just throw up our hands. - inout->fValidFlags = 0; - inout->fIsSingleComponent = false; + inout->mulByUnknownColor(); } private: |