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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 return SkNEW_ARGS(SkGScalerContext, (const_cast<SkGTypeface*>(this), desc)); | 171 return SkNEW_ARGS(SkGScalerContext, (const_cast<SkGTypeface*>(this), desc)); |
172 } | 172 } |
173 | 173 |
174 void SkGTypeface::onFilterRec(SkScalerContextRec* rec) const { | 174 void SkGTypeface::onFilterRec(SkScalerContextRec* rec) const { |
175 fProxy->filterRec(rec); | 175 fProxy->filterRec(rec); |
176 rec->setHinting(SkPaint::kNo_Hinting); | 176 rec->setHinting(SkPaint::kNo_Hinting); |
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 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 SkStreamAsset* 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, |
(...skipping 65 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 |