diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-21 15:36:26 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-21 15:36:26 +0000 |
commit | 38c37ddbaf3b29cdacbc25d4aa2acca1869d276f (patch) | |
tree | 008dd8f7c1330eb96fec98b3a1f841d31cd7d55a /include/core | |
parent | a262eea230a69cce309191bfdc8a19fe8737a152 (diff) |
call onGetUPEM to subclasses can optimize it, and place default behavior
(calling getAdvancedTypefaceMetrics) in base impl.
This allows us to remove SkFontHost::GetUnitsPerEm entirely
Review URL: https://codereview.chromium.org/12915003
git-svn-id: http://skia.googlecode.com/svn/trunk@8295 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkFontHost.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/core/SkFontHost.h b/include/core/SkFontHost.h index b48c565352..30852f22f6 100644 --- a/include/core/SkFontHost.h +++ b/include/core/SkFontHost.h @@ -91,16 +91,6 @@ public: /** @deprecated get from Device. */ static LCDOrder GetSubpixelOrder(); -#ifdef SK_BUILD_FOR_ANDROID - /** - * Return the number of font units per em. - * - * @param fontID the font to query. - * @return the number of font units per em or 0 on error. - */ - static uint32_t GetUnitsPerEm(SkFontID fontID); -#endif - /** If Skia is running in a constrained environment and the typeface implementation is handle based, the typeface data may become unavailable asynchronously. If a font host or scaler context method is |