aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrTInstanceBatch.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-11-16 09:06:59 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-16 09:06:59 -0800
commite004bfc0a5e28cc083158f1a75e981ffd58a8134 (patch)
tree77ac623a0e5b6264d4933ae53da831e7220bfbf7 /src/gpu/batches/GrTInstanceBatch.h
parenta7a21cffe1d56d52bac9accd05001e9c970e76f3 (diff)
Increase the amount of debug information printed out by batches
Untangling MDB bugs requires more information. In particular the render targets. BUG=skia:4094 TBR=bsalomon@google.com Review URL: https://codereview.chromium.org/1443763002
Diffstat (limited to 'src/gpu/batches/GrTInstanceBatch.h')
-rw-r--r--src/gpu/batches/GrTInstanceBatch.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/batches/GrTInstanceBatch.h b/src/gpu/batches/GrTInstanceBatch.h
index b4bc0c084f..86d85b616f 100644
--- a/src/gpu/batches/GrTInstanceBatch.h
+++ b/src/gpu/batches/GrTInstanceBatch.h
@@ -50,6 +50,15 @@ public:
const char* name() const override { return Impl::Name(); }
+ SkString dumpInfo() const override {
+ SkString str;
+ for (int i = 0; i < fGeoData.count(); ++i) {
+ str.append(Impl::DumpInfo(fGeoData[i]));
+ }
+ str.append(INHERITED::dumpInfo());
+ return str;
+ }
+
void getInvariantOutputColor(GrInitInvariantOutput* out) const override {
// When this is called on a batch, there is only one geometry bundle
out->setKnownFourComponents(fGeoData[0].fColor);