Chromium Code Reviews| Index: src/gpu/GrOvalRenderer.cpp |
| diff --git a/src/gpu/GrOvalRenderer.cpp b/src/gpu/GrOvalRenderer.cpp |
| index c5d807c8e8081d89932cfff9bf689935f9c6b64d..ee08e08e6513b1a0665ffec4c58605ceda33c97e 100644 |
| --- a/src/gpu/GrOvalRenderer.cpp |
| +++ b/src/gpu/GrOvalRenderer.cpp |
| @@ -626,6 +626,20 @@ public: |
| const char* name() const override { return "CircleBatch"; } |
| + SkString dumpInfo() const override { |
| + SkString string; |
| + for (int i = 0; i < fGeoData.count(); ++i) { |
| + string.appendf("Color: 0x%08x Rect [L: %.2f, T: %.2f, R: %.2f, B: %.2f], InnerRad: %.2f, OuterRad: %.2f\n", |
|
joshualitt
2015/11/13 19:43:23
line wrap
robertphillips
2015/11/16 14:16:06
Done.
|
| + fGeoData[i].fColor, |
| + fGeoData[i].fDevBounds.fLeft, fGeoData[i].fDevBounds.fTop, |
| + fGeoData[i].fDevBounds.fRight, fGeoData[i].fDevBounds.fBottom, |
| + fGeoData[i].fInnerRadius, |
| + fGeoData[i].fOuterRadius); |
| + } |
| + string.append(INHERITED::dumpInfo()); |
| + return string; |
| + } |
| + |
| void getInvariantOutputColor(GrInitInvariantOutput* out) const override { |
| // When this is called on a batch, there is only one geometry bundle |
| out->setKnownFourComponents(fGeoData[0].fColor); |