Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(847)

Unified Diff: src/ports/SkTypeface_win_dw.cpp

Issue 2226653003: SkTypeface_win_dw.cpp remove unused fn (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkTypeface_win_dw.cpp
diff --git a/src/ports/SkTypeface_win_dw.cpp b/src/ports/SkTypeface_win_dw.cpp
index 7e5c409df1395939c002152495de201f8afe8958..09eeb36405c9debc077db00e3e2682717ff549f3 100644
--- a/src/ports/SkTypeface_win_dw.cpp
+++ b/src/ports/SkTypeface_win_dw.cpp
@@ -313,22 +313,6 @@ static void populate_glyph_to_unicode(IDWriteFontFace* fontFace,
SkTDArray<SkUnichar>(glyphToUni, maxGlyph + 1).swap(*glyphToUnicode);
}
-static bool getWidthAdvance(IDWriteFontFace* fontFace, int gId, int16_t* advance) {
- SkASSERT(advance);
-
- UINT16 glyphId = gId;
- DWRITE_GLYPH_METRICS gm;
- HRESULT hr = fontFace->GetDesignGlyphMetrics(&glyphId, 1, &gm);
-
- if (FAILED(hr)) {
- *advance = 0;
- return false;
- }
-
- *advance = gm.advanceWidth;
- return true;
-}
-
SkAdvancedTypefaceMetrics* DWriteFontTypeface::onGetAdvancedTypefaceMetrics(
PerGlyphInfo perGlyphInfo,
const uint32_t* glyphIDs,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698