Index: src/gpu/batches/GrDrawBatch.h |
diff --git a/src/gpu/batches/GrDrawBatch.h b/src/gpu/batches/GrDrawBatch.h |
index bf93cf5a72115f2a2df4734e361d3cfdeacfcee8..038665038094977163ec74f815c6b3d5ee8a49dd 100644 |
--- a/src/gpu/batches/GrDrawBatch.h |
+++ b/src/gpu/batches/GrDrawBatch.h |
@@ -100,6 +100,20 @@ public: |
this->pipeline()->getCoverageFragmentProcessor(i).dumpInfo().c_str()); |
} |
string.appendf("XP: %s\n", this->pipeline()->getXferProcessor().name()); |
+ |
+ bool scissorEnabled = this->pipeline()->getScissorState().enabled(); |
+ string.appendf("Scissor: "); |
+ if (scissorEnabled) { |
+ string.appendf("[L: %d, T: %d, R: %d, B: %d]\n", |
+ this->pipeline()->getScissorState().rect().fLeft, |
+ this->pipeline()->getScissorState().rect().fTop, |
+ this->pipeline()->getScissorState().rect().fRight, |
+ this->pipeline()->getScissorState().rect().fBottom); |
+ } else { |
+ string.appendf("<disabled>\n"); |
+ } |
+ string.append(INHERITED::dumpInfo()); |
+ |
return string; |
} |