aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-04-01 04:55:51 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-01 04:55:51 -0700
commit0fba3b97b5b0e3707b31931ab9325030b81c940f (patch)
tree3eb4b8eb78562b7d5f0e54076330a951ef7ac382
parent92d48830852f3e34644561dbbfaf10364836482d (diff)
sk_sp for SkCanvas::drawAnnotation()
-rw-r--r--include/core/SkCanvas.h3
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