Index: src/gpu/batches/GrAAFillRectBatch.cpp |
diff --git a/src/gpu/batches/GrAAFillRectBatch.cpp b/src/gpu/batches/GrAAFillRectBatch.cpp |
index 964610788d7ca5a7a33ed6d427bfef3458674741..1b3f139a020dba920bc25fa0ddab17c6a77b2e3a 100644 |
--- a/src/gpu/batches/GrAAFillRectBatch.cpp |
+++ b/src/gpu/batches/GrAAFillRectBatch.cpp |
@@ -217,6 +217,14 @@ public: |
static const char* Name() { return "AAFillRectBatchNoLocalMatrix"; } |
+ static SkString DumpInfo(const Geometry& geo) { |
+ SkString str; |
+ str.appendf("Color: 0x%08x, Rect [L: %.2f, T: %.2f, R: %.2f, B: %.2f]\n", |
+ geo.fColor, |
+ geo.fRect.fLeft, geo.fRect.fTop, geo.fRect.fRight, geo.fRect.fBottom); |
+ return str; |
+ } |
+ |
static bool CanCombine(const Geometry& mine, const Geometry& theirs, |
const GrPipelineOptimizations& opts) { |
// We apply the viewmatrix to the rect points on the cpu. However, if the pipeline uses |
@@ -258,6 +266,14 @@ public: |
static const char* Name() { return "AAFillRectBatchLocalMatrix"; } |
+ static SkString DumpInfo(const Geometry& geo) { |
+ SkString str; |
+ str.appendf("Color: 0x%08x, Rect [L: %.2f, T: %.2f, R: %.2f, B: %.2f]\n", |
+ geo.fColor, |
+ geo.fRect.fLeft, geo.fRect.fTop, geo.fRect.fRight, geo.fRect.fBottom); |
+ return str; |
+ } |
+ |
static bool CanCombine(const Geometry& mine, const Geometry& theirs, |
const GrPipelineOptimizations&) { |
return true; |