Specify DrawList as using a z test of "GREATER"
A test of GREATER, as opposed to GEQUAL, allows us to avoid double
blends during stroking.
Change-Id: I1d39b54416934ee354146fe42c58299f00f7a6e9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/453616
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
diff --git a/experimental/graphite/src/DrawList.h b/experimental/graphite/src/DrawList.h
index 16cbd03..f974d3b 100644
--- a/experimental/graphite/src/DrawList.h
+++ b/experimental/graphite/src/DrawList.h
@@ -41,9 +41,10 @@
*
* Commands are accumulated in an arbitrary order and then sorted by increasing sort z when the list
* is prepared into an actual command buffer. The result of a draw command is the rasterization of
- * the transformed shape, restricted by its primitive clip (e.g. a scissor rect) and a GEQUAL
- * depth test vs. its write/test z. If the command has a shading description, the color buffer will
- * be modified; if not, it will be a depth-only draw.
+ * the transformed shape, restricted by its primitive clip (e.g. a scissor rect) and a depth test
+ * of "GREATER" vs. its write/test z. (A test of GREATER, as opposed to GEQUAL, avoids double hits
+ * for draws that may have overlapping geometry, e.g. stroking.) If the command has a shading
+ * description, the color buffer will be modified; if not, it will be a depth-only draw.
*
* In addition to sorting the collected commands, the command list can be optimized during
* preparation. Commands that are fully occluded by later operations can be skipped entirely without