diff options
author | mboc <mboc@opera.com> | 2016-05-31 11:42:36 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-31 11:42:37 -0700 |
commit | ee6a9919a362e16c1d84a870ce867d1ad7b8a141 (patch) | |
tree | 971189523fe82821c82a936cafaefd59b76338f7 /bench/TextBlobBench.cpp | |
parent | bfa9275968d11d459b30a485cedcb55c7fecf9d7 (diff) |
SkTypeface::MakeFromName to take SkFontStyle.
SkTypeface::MakeFromName currently takes SkTypeface::Style,
which is quite limited. This starts the transition to this
function taking SkFontStyle instead.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1818043002
TBR=reed
He said it sounded like a good idea.
Review-Url: https://codereview.chromium.org/1818043002
Diffstat (limited to 'bench/TextBlobBench.cpp')
-rw-r--r-- | bench/TextBlobBench.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/TextBlobBench.cpp b/bench/TextBlobBench.cpp index 37bf311119..7c9b303430 100644 --- a/bench/TextBlobBench.cpp +++ b/bench/TextBlobBench.cpp @@ -27,7 +27,7 @@ public: protected: void onDelayedSetup() override { - fTypeface = sk_tool_utils::create_portable_typeface("serif", SkTypeface::kNormal); + fTypeface = sk_tool_utils::create_portable_typeface("serif", SkFontStyle()); // make textblob SkPaint paint; paint.setTypeface(fTypeface); |