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>
diff --git a/docs/SkPaint_Reference.bmh b/docs/SkPaint_Reference.bmh
index 9b9d001..99873ee 100644
--- a/docs/SkPaint_Reference.bmh
+++ b/docs/SkPaint_Reference.bmh
@@ -3138,7 +3138,7 @@
#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 ##
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index 39e7abc..3879562 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -763,7 +763,7 @@
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
*/