Index: src/gpu/batches/GrDrawBatch.h |
diff --git a/src/gpu/batches/GrDrawBatch.h b/src/gpu/batches/GrDrawBatch.h |
index bbebe5b98cfeda0392abe93e8457176742b755a6..ed33816603e7eefbc35d0096d0eee9f94e6e233f 100644 |
--- a/src/gpu/batches/GrDrawBatch.h |
+++ b/src/gpu/batches/GrDrawBatch.h |
@@ -56,6 +56,25 @@ public: |
// TODO no GrPrimitiveProcessors yet read fragment position |
bool willReadFragmentPosition() const { return false; } |
+ uint32_t renderTargetUniqueID() const final { |
+ SkASSERT(fPipelineInstalled); |
+ return this->pipeline()->getRenderTarget()->getUniqueID(); |
+ } |
+ |
+ SkString dumpInfo() const override { |
+ SkString string; |
+ string.append("ColorStages:\n"); |
+ for (int i = 0; i < this->pipeline()->numColorFragmentStages(); i++) { |
+ string.appendf("\t\t%s\n", this->pipeline()->getColorStage(i).processor()->name()); |
+ } |
+ string.append("CoverageStages:\n"); |
+ for (int i = 0; i < this->pipeline()->numCoverageFragmentStages(); i++) { |
+ string.appendf("\t%s\n", this->pipeline()->getCoverageStage(i).processor()->name()); |
+ } |
+ string.appendf("XP: %s\n", this->pipeline()->getXferProcessor()->name()); |
+ return string; |
+ } |
+ |
private: |
/** |
* initBatchTracker is a hook for the some additional overrides / optimization possibilities |