From: Brian Salomon Date: Thu, 9 Feb 2017 20:17:52 +0000 (-0500) Subject: Temporarily don't mark alpha threshold fp as modulating X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~55^2~408 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99dbe7b2c4996c094a440f512e9f7eb9c2708884;p=platform%2Fupstream%2FlibSkiaSharp.git Temporarily don't mark alpha threshold fp as modulating Change-Id: I4b2b4f69f1d68cb55ca65d046355a5ea2dc34e36 Reviewed-on: https://skia-review.googlesource.com/8279 Reviewed-by: Brian Salomon --- 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; } }