From 99dbe7b2c4996c094a440f512e9f7eb9c2708884 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Thu, 9 Feb 2017 15:17:52 -0500 Subject: [PATCH] Temporarily don't mark alpha threshold fp as modulating Change-Id: I4b2b4f69f1d68cb55ca65d046355a5ea2dc34e36 Reviewed-on: https://skia-review.googlesource.com/8279 Reviewed-by: Brian Salomon --- src/effects/GrAlphaThresholdFragmentProcessor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/effects/GrAlphaThresholdFragmentProcessor.cpp b/src/effects/GrAlphaThresholdFragmentProcessor.cpp index 37ca3ef..52e408f 100644 --- a/src/effects/GrAlphaThresholdFragmentProcessor.cpp +++ b/src/effects/GrAlphaThresholdFragmentProcessor.cpp @@ -33,10 +33,11 @@ sk_sp GrAlphaThresholdFragmentProcessor::Make( } 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; } } -- 2.7.4