Index: src/gpu/batches/GrBatch.h |
diff --git a/src/gpu/batches/GrBatch.h b/src/gpu/batches/GrBatch.h |
index b26cdde73c98603d0b1fbe93dcc34642ae87b558..b0906ab690dbc51b7fb9409f35a9d590d693e699 100644 |
--- a/src/gpu/batches/GrBatch.h |
+++ b/src/gpu/batches/GrBatch.h |
@@ -118,7 +118,12 @@ public: |
virtual uint32_t renderTargetUniqueID() const = 0; |
/** Used for spewing information about batches when debugging. */ |
- virtual SkString dumpInfo() const = 0; |
+ virtual SkString dumpInfo() const { |
+ SkString string; |
+ string.appendf("BatchBounds: [L: %.2f, T: %.2f, R: %.2f, B: %.2f]\n", |
+ fBounds.fLeft, fBounds.fTop, fBounds.fRight, fBounds.fBottom); |
+ return string; |
+ } |
/** Can remove this when multi-draw-buffer lands */ |
virtual GrRenderTarget* renderTarget() const = 0; |