commit | b5784ace850ddffb6327827a44363ed13195bd31 | [log] [tgz] |
---|---|---|
author | Mike Reed <reed@google.com> | Mon Nov 12 09:35:15 2018 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Mon Nov 12 15:03:03 2018 +0000 |
tree | 377fd76244bda051c7954fd26bd27875b7ff3a91 | |
parent | e5178243d0cb851473616b129ecfea25ca76c394 [diff] [blame] |
use SkFontMetrics so we can deprecated the typedef Bug: skia: Change-Id: Icd40c042b0a8251bbd0b39dd3ee1a4634fff379f Reviewed-on: https://skia-review.googlesource.com/c/170344 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
diff --git a/modules/skshaper/src/SkShaper_primitive.cpp b/modules/skshaper/src/SkShaper_primitive.cpp index e6b4277..3f45a11 100644 --- a/modules/skshaper/src/SkShaper_primitive.cpp +++ b/modules/skshaper/src/SkShaper_primitive.cpp
@@ -49,7 +49,7 @@ return point; } SkRect bounds; - SkPaint::FontMetrics metrics; + SkFontMetrics metrics; paint.getFontMetrics(&metrics); point.fY -= metrics.fAscent; (void)paint.measureText(utf8text, textBytes, &bounds);