Index: src/gpu/GrProcessor.cpp |
diff --git a/src/gpu/GrProcessor.cpp b/src/gpu/GrProcessor.cpp |
index 71dfaae9129a7d819048636ef767d4c17eb34f45..3b2d745cb8db7d403a3baf893415540a7f19aec9 100644 |
--- a/src/gpu/GrProcessor.cpp |
+++ b/src/gpu/GrProcessor.cpp |
@@ -142,6 +142,9 @@ void GrProcessor::InvariantOutput::validate() const { |
} |
SkASSERT(this->validPreMulColor()); |
+ |
+ // If we claim that we are not using the input color we must not be modulating the input. |
+ SkASSERT(!fInputIsOnlyModulated || fWillUseInputColor); |
} |
bool GrProcessor::InvariantOutput::colorComponentsAllEqual() const { |