diff options
author | mtklein <mtklein@chromium.org> | 2016-04-01 04:55:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-01 04:55:51 -0700 |
commit | 0fba3b97b5b0e3707b31931ab9325030b81c940f (patch) | |
tree | 3eb4b8eb78562b7d5f0e54076330a951ef7ac382 /include | |
parent | 92d48830852f3e34644561dbbfaf10364836482d (diff) |
sk_sp for SkCanvas::drawAnnotation()
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1849703003
Review URL: https://codereview.chromium.org/1849703003
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkCanvas.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index aa3504dc45..91952c3050 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -1141,6 +1141,9 @@ public: * a picture or drawing to a PDF document) will pass on this information. */ void drawAnnotation(const SkRect&, const char key[], SkData* value); + void drawAnnotation(const SkRect& rect, const char key[], const sk_sp<SkData>& value) { + this->drawAnnotation(rect, key, value.get()); + } ////////////////////////////////////////////////////////////////////////// #ifdef SK_INTERNAL |