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:
parent
a2b5b6467f
commit
900b5364d1
@ -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 ##
|
||||
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user