diff options
author | Ben Wagner <bungeman@google.com> | 2018-06-22 14:29:08 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-25 11:32:25 +0000 |
commit | 900b5364d12e6dc05c89892d72ed7de5488584b8 (patch) | |
tree | d1f07b763e40dfae61e67107fb67dc04b33c00aa /docs | |
parent | a2b5b6467f347962e0d6942da0dff9148fbb3375 (diff) |
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 <caryclark@google.com>
Commit-Queue: Cary Clark <caryclark@google.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/SkPaint_Reference.bmh | 2 |
1 files changed, 1 insertions, 1 deletions
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 ## |