Index: include/core/SkCanvas.h |
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h |
index 1d5baeee5687674c157f93df3727cc5783fc907a..6a88d6832277dcbe57c1951224a28640a49b0145 100644 |
--- a/include/core/SkCanvas.h |
+++ b/include/core/SkCanvas.h |
@@ -332,6 +332,9 @@ public: |
@return The value to pass to restoreToCount() to balance this save() |
*/ |
int saveLayer(const SkRect* bounds, const SkPaint* paint); |
+ int saveLayer(const SkRect& bounds, const SkPaint* paint) { |
+ return this->saveLayer(&bounds, paint); |
+ } |
/** DEPRECATED - use saveLayer(const SkRect*, const SkPaint*) instead. |