aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrProcessorAnalysis.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-06-05 12:25:13 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-05 16:47:45 +0000
commit28207df02b3dee83141520adf23df2c6aa087860 (patch)
treefdb76a0617c00df12eb900a1c44a87eafaf87692 /src/gpu/GrProcessorAnalysis.h
parentc1359888c021ad4594d22d849b2414fd0cdec6f5 (diff)
Make GrSimpleMeshDrawOpHelper record whether coverage can be implemented as alpha
This also makes the blend table entry for opaque src over indicate a blend of (1, ISA) rather than (1, 0) to match the actual implementation of the global src-over XP. Change-Id: I1b1f64d2546e4f0cf03c0239ce674d1baad655f6 Reviewed-on: https://skia-review.googlesource.com/18521 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrProcessorAnalysis.h')
-rw-r--r--src/gpu/GrProcessorAnalysis.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gpu/GrProcessorAnalysis.h b/src/gpu/GrProcessorAnalysis.h
index ad56ab4e2d..f5e4065ac2 100644
--- a/src/gpu/GrProcessorAnalysis.h
+++ b/src/gpu/GrProcessorAnalysis.h
@@ -117,16 +117,17 @@ public:
/**
* Are all the fragment processors compatible with conflating coverage with color prior to the
- * the first fragment processor. This result does not consider processors that should be
- * eliminated as indicated by initialProcessorsToEliminate().
+ * the first fragment processor. This result assumes that processors that should be eliminated
+ * as indicated by initialProcessorsToEliminate() are in fact eliminated.
*/
bool allProcessorsCompatibleWithCoverageAsAlpha() const {
return fAllProcessorsCompatibleWithCoverageAsAlpha;
}
/**
- * Do any of the fragment processors require local coords. This result does not consider
- * processors that should be eliminated as indicated by initialProcessorsToEliminate().
+ * Do any of the fragment processors require local coords. This result assumes that
+ * processors that should be eliminated as indicated by initialProcessorsToEliminate() are in
+ * fact eliminated.
*/
bool usesLocalCoords() const { return fUsesLocalCoords; }