From 900b5364d12e6dc05c89892d72ed7de5488584b8 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Fri, 22 Jun 2018 14:29:08 -0400 Subject: Fix SkPaint::getTypeface() documentation. SkPaint::getTypeface() allows the caller to borrow a pointer to its SkTypeface, it does not affect ownership. The existing documentation would lead a user to beleive that getTypeface() increments the reference count, but it does not. TBR=reed@google.com Change-Id: Ic1a660b026e3c4295f9f0de28abfde29c3f05524 Reviewed-on: https://skia-review.googlesource.com/137183 Reviewed-by: Cary Clark Commit-Queue: Cary Clark --- include/core/SkPaint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index 39e7abc590..38795629cc 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -763,7 +763,7 @@ public: void setMaskFilter(sk_sp maskFilter); /** Returns SkTypeface if set, or nullptr. - Increments SkTypeface SkRefCnt by one. + Does not alter SkTypeface SkRefCnt. @return SkTypeface if previously set, nullptr otherwise */ -- cgit v1.2.3