const char* name() const override { return "TextBatch"; }
+ SkString dumpInfo() const override {
+ SkString str;
+
+ for (int i = 0; i < fGeoCount; ++i) {
+ str.appendf("%d: Color: 0x%08x Trans: %.2f,%.2f Runs: %d\n",
+ i,
+ fGeoData[i].fColor,
+ fGeoData[i].fTransX,
+ fGeoData[i].fTransY,
+ fGeoData[i].fBlob->fRunCount);
+ }
+
+ str.append(INHERITED::dumpInfo());
+ return str;
+ }
+
void getInvariantOutputColor(GrInitInvariantOutput* out) const override {
if (kColorBitmapMask_MaskType == fMaskType) {
out->setUnknownFourComponents();
static const char* Name() { return "AAFillRectBatchNoLocalMatrix"; }
- static SkString DumpInfo(const Geometry& geo) {
+ static SkString DumpInfo(const Geometry& geo, int index) {
SkString str;
- str.appendf("Color: 0x%08x, Rect [L: %.2f, T: %.2f, R: %.2f, B: %.2f]\n",
+ str.appendf("%d: Color: 0x%08x, Rect [L: %.2f, T: %.2f, R: %.2f, B: %.2f]\n",
+ index,
geo.fColor,
geo.fRect.fLeft, geo.fRect.fTop, geo.fRect.fRight, geo.fRect.fBottom);
return str;
static const char* Name() { return "AAFillRectBatchLocalMatrix"; }
- static SkString DumpInfo(const Geometry& geo) {
+ static SkString DumpInfo(const Geometry& geo, int index) {
SkString str;
- str.appendf("Color: 0x%08x, Rect [L: %.2f, T: %.2f, R: %.2f, B: %.2f]\n",
+ str.appendf("%d: Color: 0x%08x, Rect [L: %.2f, T: %.2f, R: %.2f, B: %.2f]\n",
+ index,
geo.fColor,
geo.fRect.fLeft, geo.fRect.fTop, geo.fRect.fRight, geo.fRect.fBottom);
return str;
geo.fViewMatrix.mapRect(&fBounds, geo.fDst);
}
- const char* name() const override { return "GrNonAANinePatchBatch"; }
+ const char* name() const override { return "NonAANinePatchBatch"; }
+
+ SkString dumpInfo() const override {
+ SkString str;
+
+ for (int i = 0; i < fGeoData.count(); ++i) {
+ str.appendf("%d: Color: 0x%08x Center [L: %d, T: %d, R: %d, B: %d], "
+ "Dst [L: %.2f, T: %.2f, R: %.2f, B: %.2f]\n",
+ i,
+ fGeoData[i].fColor,
+ fGeoData[i].fCenter.fLeft, fGeoData[i].fCenter.fTop,
+ fGeoData[i].fCenter.fRight, fGeoData[i].fCenter.fBottom,
+ fGeoData[i].fDst.fLeft, fGeoData[i].fDst.fTop,
+ fGeoData[i].fDst.fRight, fGeoData[i].fDst.fBottom);
+ }
+
+ str.append(INHERITED::dumpInfo());
+ return str;
+ }
void getInvariantOutputColor(GrInitInvariantOutput* out) const override {
out->setUnknownFourComponents();
static const char* Name() { return "NonAAFillRectBatch"; }
- static SkString DumpInfo(const Geometry& geo) {
+ static SkString DumpInfo(const Geometry& geo, int index) {
SkString str;
- str.appendf("Color: 0x%08x, Rect [L: %.2f, T: %.2f, R: %.2f, B: %.2f]\n",
+ str.appendf("%d: Color: 0x%08x, Rect [L: %.2f, T: %.2f, R: %.2f, B: %.2f]\n",
+ index,
geo.fColor,
geo.fRect.fLeft, geo.fRect.fTop, geo.fRect.fRight, geo.fRect.fBottom);
return str;
static const char* Name() { return "NonAAFillRectBatchPerspective"; }
- static SkString DumpInfo(const Geometry& geo) {
+ static SkString DumpInfo(const Geometry& geo, int index) {
SkString str;
- str.appendf("Color: 0x%08x, Rect [L: %.2f, T: %.2f, R: %.2f, B: %.2f]\n",
+ str.appendf("%d: Color: 0x%08x, Rect [L: %.2f, T: %.2f, R: %.2f, B: %.2f]\n",
+ index,
geo.fColor,
geo.fRect.fLeft, geo.fRect.fTop, geo.fRect.fRight, geo.fRect.fBottom);
return str;
SkString dumpInfo() const override {
SkString str;
for (int i = 0; i < fGeoData.count(); ++i) {
- str.append(Impl::DumpInfo(fGeoData[i]));
+ str.append(Impl::DumpInfo(fGeoData[i], i));
}
str.append(INHERITED::dumpInfo());
return str;
const char* name() const override { return "ComposeOne"; }
+ SkString dumpInfo() const override {
+ SkString str;
+
+ for (int i = 0; i < this->numChildProcessors(); ++i) {
+ str.append(this->childProcessor(i).dumpInfo());
+ }
+ return str;
+ }
+
void onGetGLSLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b) const override {
GR_STATIC_ASSERT((SkXfermode::kLastMode & SK_MaxU16) == SkXfermode::kLastMode);
b->add32(fMode | (fChild << 16));