aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkArithmeticMode.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/SkArithmeticMode.cpp
parentcad5d3e264535c919b80e1e2a85407307961f221 (diff)
Create helper functions to use in computeInvariantOutput calls
Diffstat (limited to 'src/effects/SkArithmeticMode.cpp')
-rw-r--r--src/effects/SkArithmeticMode.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/effects/SkArithmeticMode.cpp b/src/effects/SkArithmeticMode.cpp
index 107c7842da..7e0ca37ad2 100644
--- a/src/effects/SkArithmeticMode.cpp
+++ b/src/effects/SkArithmeticMode.cpp
@@ -346,8 +346,7 @@ const GrBackendFragmentProcessorFactory& GrArithmeticEffect::getFactory() const
void GrArithmeticEffect::onComputeInvariantOutput(InvariantOutput* inout) const {
// TODO: optimize this
- inout->fValidFlags = 0;
- inout->fIsSingleComponent = false;
+ inout->setToUnknown();
}
///////////////////////////////////////////////////////////////////////////////