From ccb2e384a036f29d989d3c1468f879324e81a678 Mon Sep 17 00:00:00 2001 From: egdaniel Date: Mon, 13 Oct 2014 12:53:46 -0700 Subject: Create helper functions to use in computeInvariantOutput calls BUG=skia: Review URL: https://codereview.chromium.org/643743003 --- src/effects/SkLightingImageFilter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/effects/SkLightingImageFilter.cpp') 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: -- cgit v1.2.3