Spruce up batch info printouts

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2107013002

Review-Url: https://codereview.chromium.org/2107013002
This commit is contained in:
robertphillips 2016-06-28 14:45:31 -07:00 committed by Commit bot
parent b4f254e051
commit 26726d1ca7
3 changed files with 3 additions and 5 deletions

View File

@ -114,17 +114,13 @@ void GrDrawTarget::dump() const {
SkDebugf("\n");
SkDebugf("batches (%d):\n", fBatches.count());
for (int i = 0; i < fBatches.count(); ++i) {
#if 0
SkDebugf("*******************************\n");
#endif
if (fBatches[i]) {
if (!fBatches[i]) {
SkDebugf("%d: <combined forward>\n", i);
} else {
SkDebugf("%d: %s\n", i, fBatches[i]->name());
#if 0
SkString str = fBatches[i]->dumpInfo();
SkDebugf("%s\n", str.c_str());
#endif
}
}
}

View File

@ -67,6 +67,7 @@ void GrDrawingManager::flush() {
SkTTopoSort<GrDrawTarget, GrDrawTarget::TopoSortTraits>(&fDrawTargets);
SkASSERT(result);
// Enable this to print out verbose batching information
#if 0
for (int i = 0; i < fDrawTargets.count(); ++i) {
SkDEBUGCODE(fDrawTargets[i]->dump();)

View File

@ -52,6 +52,7 @@ public:
SkString dumpInfo() const override {
SkString str;
str.appendf("# batched: %d\n", fGeoData.count());
for (int i = 0; i < fGeoData.count(); ++i) {
str.append(Impl::DumpInfo(fGeoData[i], i));
}