aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkLightingImageFilter.cpp
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2014-10-13 12:53:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-13 12:53:46 -0700
commitccb2e384a036f29d989d3c1468f879324e81a678 (patch)
tree27e38ca2ad78e3a0f741a1cc6c23899eb22b822c /src/effects/SkLightingImageFilter.cpp
parentcad5d3e264535c919b80e1e2a85407307961f221 (diff)
Create helper functions to use in computeInvariantOutput calls
Diffstat (limited to 'src/effects/SkLightingImageFilter.cpp')
-rw-r--r--src/effects/SkLightingImageFilter.cpp3
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: