diff options
author | Herb Derby <herb@google.com> | 2018-05-02 13:43:49 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-02 20:50:28 +0000 |
commit | 90864a21c4ab6c7da3c6d671cf85a97373578243 (patch) | |
tree | 4a05c1c0413f14a938c26ed5db21823698f1bd18 /include/core/SkPaint.h | |
parent | 908ad22437a5926e7f417dfeb4446722c8dd57dc (diff) |
Simplify textToGlyphs
Change-Id: I9f2ae8e669ab3c22b66f9b10bd2650b5f5ab0bd4
Reviewed-on: https://skia-review.googlesource.com/125345
Reviewed-by: Herb Derby <herb@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Auto-Submit: Herb Derby <herb@google.com>
Diffstat (limited to 'include/core/SkPaint.h')
-rw-r--r-- | include/core/SkPaint.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h index a564824448..8cc8733c27 100644 --- a/include/core/SkPaint.h +++ b/include/core/SkPaint.h @@ -1306,9 +1306,7 @@ public: @param byteLength length of character storage in bytes @return number of glyphs represented by text of length byteLength */ - int countText(const void* text, size_t byteLength) const { - return this->textToGlyphs(text, byteLength, nullptr); - } + int countText(const void* text, size_t byteLength) const; /** Returns the advance width of text if kVerticalText_Flag is clear, and the height of text if kVerticalText_Flag is set. |