Clean up SkFontConfigInterface implementation.
authorbungeman <bungeman@google.com>
Mon, 2 May 2016 18:54:13 +0000 (11:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 2 May 2016 18:54:13 +0000 (11:54 -0700)
commit0265707c191a31dfde08dd1cd7011c1fe5b8e643
tree919635b2cf13cc3c639126c42e6098130e2e2c30
parentc5091b5b6c4b8a7aef8c12db9ea2a85e907b01c4
Clean up SkFontConfigInterface implementation.

Renames some classes to avoid confusion with FontConfig.

Removed direct calls to FontConfig instead of calling FCI.

Moves the globals and factory to one (optional) file.

Moves font management code from typeface to font manager.

Adds index to fonts created from streams.

Associates FCI typefaces with the FCI instance which provides its identity.

Simplifies the singleton initialization.

Review-Url: https://codereview.chromium.org/1936213002
gyp/ports.gyp
include/ports/SkFontConfigInterface.h
src/fonts/SkFontMgr_fontconfig.cpp
src/ports/SkFontConfigInterface_direct.cpp
src/ports/SkFontConfigInterface_direct.h
src/ports/SkFontConfigInterface_direct_factory.cpp
src/ports/SkFontConfigInterface_direct_google3_factory.cpp
src/ports/SkFontConfigTypeface.h
src/ports/SkFontHost_fontconfig.cpp
tools/tsan.supp