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

Side by Side Diff: src/fonts/SkGScalerContext.cpp

Issue 869763002: SkTypeface to use SkStreamAsset. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « src/fonts/SkGScalerContext.h ('k') | src/fonts/SkTestScalerContext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/fonts/SkGScalerContext.h ('k') | src/fonts/SkTestScalerContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698