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:
parent
b4f254e051
commit
26726d1ca7
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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();)
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user