Change-Id: I4b2b4f69f1d68cb55ca65d046355a5ea2dc34e36
Reviewed-on: https://skia-review.googlesource.com/8279
Reviewed-by: Brian Salomon <bsalomon@google.com>
}
inline GrFragmentProcessor::OptimizationFlags GrAlphaThresholdFragmentProcessor::OptFlags(float outerThreshold) {
+ // TODO: Advertise that this processor modulates.
if (outerThreshold >= 1.f) {
- return kPreservesOpaqueInput_OptimizationFlag | kModulatesInput_OptimizationFlag;
+ return kPreservesOpaqueInput_OptimizationFlag;
} else {
- return kModulatesInput_OptimizationFlag;
+ return kNone_OptimizationFlags;
}
}