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/samplecode/SampleRegion.cpp b/samplecode/SampleRegion.cpp index 4c5b588..a9526fa 100644 --- a/samplecode/SampleRegion.cpp +++ b/samplecode/SampleRegion.cpp
@@ -56,7 +56,7 @@ const SkPaint& paint) { // Need a bounds for the text SkRect bounds; - SkPaint::FontMetrics fm; + SkFontMetrics fm; paint.getFontMetrics(&fm); bounds.set(x, y + fm.fTop, x + paint.measureText(text, len), y + fm.fBottom);