Clear and discard stencil buffers on tilers
Bug: skia:
Change-Id: I42e99cb75567825ac7751fc0ec56e4c45132628b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/210425
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
diff --git a/src/gpu/GrOpList.cpp b/src/gpu/GrOpList.cpp
index 109289b..5cee97d 100644
--- a/src/gpu/GrOpList.cpp
+++ b/src/gpu/GrOpList.cpp
@@ -187,9 +187,6 @@
}
#ifdef SK_DEBUG
-static const char* op_to_name(GrLoadOp op) {
- return GrLoadOp::kLoad == op ? "load" : GrLoadOp::kClear == op ? "clear" : "discard";
-}
void GrOpList::dump(bool printDependencies) const {
SkDebugf("--------------------------------------------------------------\n");
@@ -198,10 +195,9 @@
fTarget.get() && fTarget.get()->peekSurface()
? fTarget.get()->peekSurface()->uniqueID().asUInt()
: -1);
- SkDebugf("ColorLoadOp: %s %x StencilLoadOp: %s\n",
- op_to_name(fColorLoadOp),
- GrLoadOp::kClear == fColorLoadOp ? fLoadClearColor.toBytes_RGBA() : 0x0,
- op_to_name(fStencilLoadOp));
+ SkDebugf("ColorLoadOp: %s %x\n",
+ GrLoadOpName(fColorLoadOp),
+ GrLoadOp::kClear == fColorLoadOp ? fLoadClearColor.toBytes_RGBA() : 0x0);
if (printDependencies) {
SkDebugf("I rely On (%d): ", fDependencies.count());