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

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

Issue 1129283003: Make SkAdvancedTypefaceMetrics private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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