diff options
author | Brian Salomon <bsalomon@google.com> | 2017-02-15 10:22:23 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-15 17:27:10 +0000 |
commit | f3b995b628ef76bff28b9721dd1e182336156086 (patch) | |
tree | a0a0dcb7d12934495c445a73fe18bae9fda42bb7 /tests/ProcessorTest.cpp | |
parent | 2b512d00ef8d6a8eb200396ab0a64294e84c4fa4 (diff) |
Clarify when tweak alpha for coverage optimizaton can occur.
Also refer to it directly rather than using the term "modulate"
Change-Id: Ifa44a4d46e1be11b567943f58ead24e38f10d03b
Reviewed-on: https://skia-review.googlesource.com/8488
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tests/ProcessorTest.cpp')
-rw-r--r-- | tests/ProcessorTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ProcessorTest.cpp b/tests/ProcessorTest.cpp index a69371d386..8801a34b22 100644 --- a/tests/ProcessorTest.cpp +++ b/tests/ProcessorTest.cpp @@ -316,7 +316,7 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(ProcessorOptimizationValidationTest, repor for (int j = 0; j < timesToInvokeFactory; ++j) { fp = FPFactory::MakeIdx(i, &testData); if (!fp->hasConstantOutputForConstantInput() && !fp->preservesOpaqueInput() && - !fp->modulatesInput()) { + !fp->compatibleWithCoverageAsAlpha()) { continue; } test_draw_op(rtc.get(), fp, dataTexture.get()); @@ -340,7 +340,7 @@ DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(ProcessorOptimizationValidationTest, repor for (int x = 0; x < 256 && passing; ++x) { GrColor input = texel_color(x, y); GrColor output = rgbaData.get()[y * 256 + x]; - if (fp->modulatesInput()) { + if (fp->compatibleWithCoverageAsAlpha()) { // A modulating processor is allowed to modulate either the input color or // just the input alpha. bool legalColorModulation = |