OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * 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 |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkGScalerContext.h" | 8 #include "SkGScalerContext.h" |
9 #include "SkGlyph.h" | 9 #include "SkGlyph.h" |
10 #include "SkPath.h" | 10 #include "SkPath.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 rec->fMaskFormat = SkMask::kARGB32_Format; | 177 rec->fMaskFormat = SkMask::kARGB32_Format; |
178 } | 178 } |
179 | 179 |
180 SkAdvancedTypefaceMetrics* SkGTypeface::onGetAdvancedTypefaceMetrics( | 180 SkAdvancedTypefaceMetrics* SkGTypeface::onGetAdvancedTypefaceMetrics( |
181 SkAdvancedTypefaceMetrics::PerGlyphInfo info, | 181 SkAdvancedTypefaceMetrics::PerGlyphInfo info, |
182 const uint32_t* glyphIDs, | 182 const uint32_t* glyphIDs, |
183 uint32_t glyphIDsCount) const { | 183 uint32_t glyphIDsCount) const { |
184 return fProxy->getAdvancedTypefaceMetrics(info, glyphIDs, glyphIDsCount); | 184 return fProxy->getAdvancedTypefaceMetrics(info, glyphIDs, glyphIDsCount); |
185 } | 185 } |
186 | 186 |
187 SkStream* SkGTypeface::onOpenStream(int* ttcIndex) const { | 187 SkStreamAsset* SkGTypeface::onOpenStream(int* ttcIndex) const { |
188 return fProxy->openStream(ttcIndex); | 188 return fProxy->openStream(ttcIndex); |
189 } | 189 } |
190 | 190 |
191 void SkGTypeface::onGetFontDescriptor(SkFontDescriptor* desc, | 191 void SkGTypeface::onGetFontDescriptor(SkFontDescriptor* desc, |
192 bool* isLocal) const { | 192 bool* isLocal) const { |
193 fProxy->getFontDescriptor(desc, isLocal); | 193 fProxy->getFontDescriptor(desc, isLocal); |
194 } | 194 } |
195 | 195 |
196 int SkGTypeface::onCharsToGlyphs(const void* chars, Encoding encoding, | 196 int SkGTypeface::onCharsToGlyphs(const void* chars, Encoding encoding, |
197 uint16_t glyphs[], int glyphCount) const { | 197 uint16_t glyphs[], int glyphCount) const { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 257 |
258 friend class SkGFontBuilder; | 258 friend class SkGFontBuilder; |
259 SkGFont(int count, Glyph* array); | 259 SkGFont(int count, Glyph* array); |
260 }; | 260 }; |
261 | 261 |
262 class SkGFontBuilder { | 262 class SkGFontBuilder { |
263 public: | 263 public: |
264 | 264 |
265 }; | 265 }; |
266 #endif | 266 #endif |
OLD | NEW |