Index: src/utils/debugger/SkDebugCanvas.cpp |
diff --git a/src/utils/debugger/SkDebugCanvas.cpp b/src/utils/debugger/SkDebugCanvas.cpp |
index 86937392a6afc5ec44a74a2c5f18e3907bd75b82..560976cbb7b3261c5c68f6e4c717c62c84cb9bc9 100644 |
--- a/src/utils/debugger/SkDebugCanvas.cpp |
+++ b/src/utils/debugger/SkDebugCanvas.cpp |
@@ -524,10 +524,9 @@ void SkDebugCanvas::willSave() { |
this->INHERITED::willSave(); |
} |
-SkCanvas::SaveLayerStrategy SkDebugCanvas::willSaveLayer(const SkRect* bounds, const SkPaint* paint, |
- SaveFlags flags) { |
- this->addDrawCommand(new SkSaveLayerCommand(bounds, paint, flags)); |
- this->INHERITED::willSaveLayer(bounds, paint, flags); |
+SkCanvas::SaveLayerStrategy SkDebugCanvas::getSaveLayerStrategy(const SaveLayerRec& rec) { |
+ this->addDrawCommand(new SkSaveLayerCommand(rec)); |
+ (void)this->INHERITED::getSaveLayerStrategy(rec); |
// No need for a full layer. |
return kNoLayer_SaveLayerStrategy; |
} |