diff options
author | 2017-02-10 12:39:26 -0500 | |
---|---|---|
committer | 2017-02-13 15:21:34 +0000 | |
commit | d1a8bdfbb97647a2a46a5c179fc87fa3da1abd84 (patch) | |
tree | 6b49f3dc1df9251e438611889cc2cd40a3e309d7 /src/effects/GrAlphaThresholdFragmentProcessor.cpp | |
parent | f6877090114c002d02bef3804dbcd6be52b23cfc (diff) |
Initialize test textures for ProcessorOptimizationValidationTest.
Ensure the data in the RGBA texture is premul.
Reenable the "modulation" optimization flag on GrAlphaThresholdFragmentProcessor.
Change-Id: I49ef215cee83ea74526c589bcee4bc215bc28ba4
Reviewed-on: https://skia-review.googlesource.com/8323
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/effects/GrAlphaThresholdFragmentProcessor.cpp')
-rw-r--r-- | src/effects/GrAlphaThresholdFragmentProcessor.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/effects/GrAlphaThresholdFragmentProcessor.cpp b/src/effects/GrAlphaThresholdFragmentProcessor.cpp index 9a90b2a51e..45a7b65cb4 100644 --- a/src/effects/GrAlphaThresholdFragmentProcessor.cpp +++ b/src/effects/GrAlphaThresholdFragmentProcessor.cpp @@ -33,11 +33,10 @@ sk_sp<GrFragmentProcessor> GrAlphaThresholdFragmentProcessor::Make( } inline GrFragmentProcessor::OptimizationFlags GrAlphaThresholdFragmentProcessor::OptFlags(float outerThreshold) { - // TODO: Advertise that this processor modulates. if (outerThreshold >= 1.f) { - return kPreservesOpaqueInput_OptimizationFlag; + return kPreservesOpaqueInput_OptimizationFlag | kModulatesInput_OptimizationFlag; } else { - return kNone_OptimizationFlags; + return kModulatesInput_OptimizationFlag; } } |