OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2010 Google Inc. | 2 * Copyright 2010 Google Inc. |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 #include "GrFontScaler.h" | 8 #include "GrFontScaler.h" |
10 #include "SkDescriptor.h" | 9 #include "SkDescriptor.h" |
11 #include "SkDistanceFieldGen.h" | 10 #include "SkDistanceFieldGen.h" |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 197 |
199 const SkPath* GrFontScaler::getGlyphPath(const SkGlyph& glyph) { | 198 const SkPath* GrFontScaler::getGlyphPath(const SkGlyph& glyph) { |
200 return fStrike->findPath(glyph); | 199 return fStrike->findPath(glyph); |
201 } | 200 } |
202 | 201 |
203 const SkGlyph& GrFontScaler::grToSkGlyph(GrGlyph::PackedID id) { | 202 const SkGlyph& GrFontScaler::grToSkGlyph(GrGlyph::PackedID id) { |
204 return fStrike->getGlyphIDMetrics(GrGlyph::UnpackID(id), | 203 return fStrike->getGlyphIDMetrics(GrGlyph::UnpackID(id), |
205 GrGlyph::UnpackFixedX(id), | 204 GrGlyph::UnpackFixedX(id), |
206 GrGlyph::UnpackFixedY(id)); | 205 GrGlyph::UnpackFixedY(id)); |
207 } | 206 } |
OLD | NEW |