aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/SkGlyphCacheBench.cpp
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2017-07-27 10:45:29 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-27 21:30:45 +0000
commit713195071dc7bdeddec2d1c9fab9b3720f049f07 (patch)
tree1bc2d47ec9e66f81a14d626eb5ad8185dbecca27 /bench/SkGlyphCacheBench.cpp
parent23890a9ac89005a15967fe8af8aaafc0edda5e32 (diff)
Remove internal use of SkTypeface::Style.
Change-Id: I71cf04b12be95a54b7fb47d048ba1f8672ed9a8f Reviewed-on: https://skia-review.googlesource.com/27760 Commit-Queue: Ben Wagner <bungeman@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'bench/SkGlyphCacheBench.cpp')
-rw-r--r--bench/SkGlyphCacheBench.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/bench/SkGlyphCacheBench.cpp b/bench/SkGlyphCacheBench.cpp
index 4d43a611d4..1cc257fd3f 100644
--- a/bench/SkGlyphCacheBench.cpp
+++ b/bench/SkGlyphCacheBench.cpp
@@ -56,8 +56,7 @@ protected:
SkPaint paint;
paint.setAntiAlias(true);
paint.setSubpixelText(true);
- paint.setTypeface(sk_tool_utils::create_portable_typeface(
- "serif", SkFontStyle::FromOldStyle(SkTypeface::kItalic)));
+ paint.setTypeface(sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Italic()));
for (int work = 0; work < loops; work++) {
do_font_stuff(&paint);
@@ -89,10 +88,8 @@ protected:
size_t oldCacheLimitSize = SkGraphics::GetFontCacheLimit();
SkGraphics::SetFontCacheLimit(fCacheSize);
sk_sp<SkTypeface> typefaces[] =
- {sk_tool_utils::create_portable_typeface("serif",
- SkFontStyle::FromOldStyle(SkTypeface::kItalic)),
- sk_tool_utils::create_portable_typeface("sans-serif",
- SkFontStyle::FromOldStyle(SkTypeface::kItalic))};
+ {sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Italic()),
+ sk_tool_utils::create_portable_typeface("sans-serif", SkFontStyle::Italic())};
for (int work = 0; work < loops; work++) {
SkTaskGroup().batch(16, [&](int threadIndex) {