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>
This commit is contained in:
Ben Wagner 2018-06-22 14:29:08 -04:00 committed by Skia Commit-Bot
parent a2b5b6467f
commit 900b5364d1
2 changed files with 2 additions and 2 deletions

View File

@ -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 ##

View File

@ -763,7 +763,7 @@ public:
void setMaskFilter(sk_sp<SkMaskFilter> maskFilter);
/** Returns SkTypeface if set, or nullptr.
Increments SkTypeface SkRefCnt by one.
Does not alter SkTypeface SkRefCnt.
@return SkTypeface if previously set, nullptr otherwise
*/