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 /include/core | |
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 'include/core')
-rw-r--r-- | include/core/SkPaint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index 39e7abc590..38795629cc 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -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 */ |