Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(798)

Unified Diff: src/effects/SkBlurMaskFilter.cpp

Issue 643743003: Create helper functions to use in computeInvariantOutput calls (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixes Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/effects/SkBlurMaskFilter.cpp
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp
index 79cf7e64949f21346990ba07560ba74961308029..42ce9b5aa90878d3ade25305d98133e552460670 100644
--- a/src/effects/SkBlurMaskFilter.cpp
+++ b/src/effects/SkBlurMaskFilter.cpp
@@ -766,8 +766,7 @@ bool GrRectBlurEffect::onIsEqual(const GrProcessor& sBase) const {
}
void GrRectBlurEffect::onComputeInvariantOutput(InvariantOutput* inout) const {
- inout->fValidFlags = 0;
- inout->fIsSingleComponent = false;
+ inout->unknownOutput();
bsalomon 2014/10/10 19:48:16 I think this can be mulByUnknownAlpha()
egdaniel 2014/10/13 16:44:57 Done.
}
GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrRectBlurEffect);
@@ -930,8 +929,7 @@ GrFragmentProcessor* GrRRectBlurEffect::Create(GrContext* context, float sigma,
}
void GrRRectBlurEffect::onComputeInvariantOutput(InvariantOutput* inout) const {
- inout->fValidFlags = 0;
- inout->fIsSingleComponent = false;
+ inout->unknownOutput();
bsalomon 2014/10/10 19:48:16 and this
egdaniel 2014/10/13 16:44:57 Done.
}
const GrBackendFragmentProcessorFactory& GrRRectBlurEffect::getFactory() const {

Powered by Google App Engine
This is Rietveld 408576698