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;
string.printf("Color: 0x%08x, Rect [L: %d, T: %d, R: %d, B: %d], RT: %d",
fColor, fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom,
fRenderTarget.get()->getUniqueID());
+ string.append(INHERITED::dumpInfo());
return string;
}
string.printf("Rect [L: %d, T: %d, R: %d, B: %d], IC: %d, RT: 0x%p",
fRect.fLeft, fRect.fTop, fRect.fRight, fRect.fBottom, fInsideClip,
fRenderTarget.get());
+ string.append(INHERITED::dumpInfo());
return string;
}
"DPT:[X: %d, Y: %d]",
fDst.get(), fSrc.get(), fSrcRect.fLeft, fSrcRect.fTop, fSrcRect.fRight,
fSrcRect.fBottom, fDstPoint.fX, fDstPoint.fY);
+ string.append(INHERITED::dumpInfo());
return string;
}
SkString dumpInfo() const override {
SkString string;
string.printf("RT: %d", fRenderTarget.get()->getUniqueID());
+ string.append(INHERITED::dumpInfo());
return string;
}
this->pipeline()->getCoverageFragmentProcessor(i).dumpInfo().c_str());
}
string.appendf("XP: %s\n", this->pipeline()->getXferProcessor().name());
+
+ bool scissorEnabled = this->pipeline()->getScissorState().enabled();
+ string.appendf("Scissor: ");
+ if (scissorEnabled) {
+ string.appendf("[L: %d, T: %d, R: %d, B: %d]\n",
+ this->pipeline()->getScissorState().rect().fLeft,
+ this->pipeline()->getScissorState().rect().fTop,
+ this->pipeline()->getScissorState().rect().fRight,
+ this->pipeline()->getScissorState().rect().fBottom);
+ } else {
+ string.appendf("<disabled>\n");
+ }
+ string.append(INHERITED::dumpInfo());
+
return string;
}
SkString GrDrawPathBatch::dumpInfo() const {
SkString string;
string.printf("PATH: 0x%p", fPath.get());
+ string.append(INHERITED::dumpInfo());
return string;
}
}
string.remove(string.size() - 2, 2);
string.append("]");
+ string.append(INHERITED::dumpInfo());
return string;
}
SkString dumpInfo() const override {
SkString string;
string.printf("PATH: 0x%p, AA:%d", fPath.get(), fUseHWAA);
+ string.append(INHERITED::dumpInfo());
return string;
}