Add option to specify font fallback when creating the skia font manager
authorkulshin <kulshin@chromium.org>
Fri, 15 Apr 2016 15:20:46 +0000 (08:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 15 Apr 2016 15:20:46 +0000 (08:20 -0700)
commit82497f9300432375cb9fd0e0ceca011ea7dce847
tree51a9b7d24fdda79cc86916ac10e47f51434b0ded
parent7a9b9aff1a7706abf5245008814e2e38a2c90f1f
Add option to specify font fallback when creating the skia font manager

This originally existed as https://codereview.chromium.org/1740533003/,
but then got reverted for causing perf problems at startup. This change
avoids that by allowing callers to specify their own font fallback, and
only uses the system fallback if a fallback is needed and none was
provided.

This is part 1 of a three part change.
1: https://codereview.chromium.org/1878843002/
   Adds support for specifying a font fallback in skia
2: https://codereview.chromium.org/1846433005/
   Implements the fallback proxy in Chromium
3: https://codereview.chromium.org/1883483002/
   Adds code to blink to call skia's fallback API

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1878843002

Review URL: https://codereview.chromium.org/1878843002
include/ports/SkTypeface_win.h
src/ports/SkFontMgr_win_dw.cpp