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 --- docs/SkPaint_Reference.bmh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/SkPaint_Reference.bmh b/docs/SkPaint_Reference.bmh index 9b9d001750..99873ee72b 100644 --- a/docs/SkPaint_Reference.bmh +++ b/docs/SkPaint_Reference.bmh @@ -3138,7 +3138,7 @@ implementation. #In Typeface_Methods #Line # returns Typeface, font description ## Returns Typeface if set, or nullptr. - Increments Typeface Reference_Count by one. + Does not alter Typeface Reference_Count. #Return Typeface if previously set, nullptr otherwise ## -- cgit v1.2.3