Significant cleanup in api, and more importantly in sementics, of SkFontHost
authorreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 4 Mar 2009 17:37:51 +0000 (17:37 +0000)
committerreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 4 Mar 2009 17:37:51 +0000 (17:37 +0000)
commitb1d9d2ef2803bd55fdc886d13033b48f8450dd14
tree809ea85c71e5434cb012fbea4c165f9c6156e25f
parent069b827f8e4f8ca212548719db64983a69b8dc25
Significant cleanup in api, and more importantly in sementics, of SkFontHost
- FindTypeface is now CreateTypeface, and what it returns is always considered
    a new instance, even if it is from a cache (in which case it will have been
    ref()'d. The caller must always balance its ownership by calling unref() on
    the result when they are done.
- CloseStream is gone, since the caller can/must call stream->unref() when they
    are done using it.
- ResolveTypeface is now ValidFontID, and just returns a bool.

git-svn-id: http://skia.googlecode.com/svn/trunk@109 2bbb7eff-a529-9590-31e7-b0007b416f81
include/core/SkFontHost.h
include/core/SkTypeface.h
src/core/SkTypeface.cpp
src/ports/SkFontHost_FONTPATH.cpp
src/ports/SkFontHost_FreeType.cpp
src/ports/SkFontHost_android.cpp
src/ports/SkFontHost_linux.cpp
src/ports/SkFontHost_mac.cpp
src/ports/SkFontHost_none.cpp
src/ports/SkFontHost_win.cpp