Index: src/utils/SkDumpCanvas.cpp |
diff --git a/src/utils/SkDumpCanvas.cpp b/src/utils/SkDumpCanvas.cpp |
index a5005610ae0fecf402084b2d14056dd339f87b20..916c32a6557b1caac69fc17b008d1c836fc253c2 100644 |
--- a/src/utils/SkDumpCanvas.cpp |
+++ b/src/utils/SkDumpCanvas.cpp |
@@ -199,14 +199,14 @@ void SkDumpCanvas::willSave() { |
this->INHERITED::willSave(); |
} |
-SkCanvas::SaveLayerStrategy SkDumpCanvas::willSaveLayer(const SkRect* bounds, const SkPaint* paint, |
- SaveFlags flags) { |
+SkCanvas::SaveLayerStrategy SkDumpCanvas::getSaveLayerStrategy(const SaveLayerRec& rec) { |
SkString str; |
- str.printf("saveLayer(0x%X)", flags); |
- if (bounds) { |
+ str.printf("saveLayer(0x%X)", rec.fSaveLayerFlags); |
+ if (rec.fBounds) { |
str.append(" bounds"); |
- toString(*bounds, &str); |
+ toString(*rec.fBounds, &str); |
} |
+ const SkPaint* paint = rec.fPaint; |
if (paint) { |
if (paint->getAlpha() != 0xFF) { |
str.appendf(" alpha:0x%02X", paint->getAlpha()); |
@@ -216,7 +216,7 @@ SkCanvas::SaveLayerStrategy SkDumpCanvas::willSaveLayer(const SkRect* bounds, co |
} |
} |
this->dump(kSave_Verb, paint, str.c_str()); |
- return this->INHERITED::willSaveLayer(bounds, paint, flags); |
+ return this->INHERITED::getSaveLayerStrategy(rec); |
} |
void SkDumpCanvas::willRestore() { |