Index: include/core/SkCanvas.h |
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h |
index 9cfc5b182b20e7b1d6c49fb9fd26fd6012e355e3..d551031739785f857538f161a605b6d03e079d68 100644 |
--- a/include/core/SkCanvas.h |
+++ b/include/core/SkCanvas.h |
@@ -995,7 +995,7 @@ public: |
void drawPicture(const SkPicture* picture) { |
this->drawPicture(picture, NULL, NULL); |
} |
- void drawPicture(sk_sp<SkPicture>& picture) { |
+ void drawPicture(const sk_sp<SkPicture>& picture) { |
this->drawPicture(picture.get()); |
} |
@@ -1012,7 +1012,7 @@ public: |
* saveLayer(paint)/drawPicture/restore |
*/ |
void drawPicture(const SkPicture*, const SkMatrix* matrix, const SkPaint* paint); |
- void drawPicture(sk_sp<SkPicture>& picture, const SkMatrix* matrix, const SkPaint* paint) { |
+ void drawPicture(const sk_sp<SkPicture>& picture, const SkMatrix* matrix, const SkPaint* paint) { |
this->drawPicture(picture.get(), matrix, paint); |
} |