OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
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 #ifndef SkScalerContext_DEFINED | 8 #ifndef SkScalerContext_DEFINED |
9 #define SkScalerContext_DEFINED | 9 #define SkScalerContext_DEFINED |
10 | 10 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
176 glyphs return zero. | 176 glyphs return zero. |
177 */ | 177 */ |
178 SkUnichar glyphIDToChar(uint16_t glyphID); | 178 SkUnichar glyphIDToChar(uint16_t glyphID); |
179 | 179 |
180 unsigned getGlyphCount() { return this->generateGlyphCount(); } | 180 unsigned getGlyphCount() { return this->generateGlyphCount(); } |
181 void getAdvance(SkGlyph*); | 181 void getAdvance(SkGlyph*); |
182 void getMetrics(SkGlyph*); | 182 void getMetrics(SkGlyph*); |
183 void getImage(const SkGlyph&); | 183 void getImage(const SkGlyph&); |
184 void getPath(const SkGlyph&, SkPath*); | 184 void getPath(const SkGlyph&, SkPath*); |
185 void getFontMetrics(SkPaint::FontMetrics*); | 185 void getFontMetrics(SkPaint::FontMetrics*); |
186 void* getGammaLUTData(int& width, int& height, SkScalar contrast, | |
reed1
2014/05/28 19:45:17
Need big dox. We almost never return a freshly all
jvanverth1
2014/05/29 18:53:49
Changed to get the size of the table first so we c
| |
187 SkScalar paintGamma, SkScalar deviceGamma); | |
186 | 188 |
187 #ifdef SK_BUILD_FOR_ANDROID | 189 #ifdef SK_BUILD_FOR_ANDROID |
188 unsigned getBaseGlyphCount(SkUnichar charCode); | 190 unsigned getBaseGlyphCount(SkUnichar charCode); |
189 | 191 |
190 // This function must be public for SkTypeface_android.h, but should not be | 192 // This function must be public for SkTypeface_android.h, but should not be |
191 // called by other callers | 193 // called by other callers |
192 SkFontID findTypefaceIdForChar(SkUnichar uni); | 194 SkFontID findTypefaceIdForChar(SkUnichar uni); |
193 #endif | 195 #endif |
194 | 196 |
195 static void MakeRec(const SkPaint&, const SkDeviceProperties* deviceProperti es, | 197 static void MakeRec(const SkPaint&, const SkDeviceProperties* deviceProperti es, |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
337 return static_cast<SkPaint::Hinting>(hint); | 339 return static_cast<SkPaint::Hinting>(hint); |
338 } | 340 } |
339 | 341 |
340 void SkScalerContextRec::setHinting(SkPaint::Hinting hinting) { | 342 void SkScalerContextRec::setHinting(SkPaint::Hinting hinting) { |
341 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) | | 343 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) | |
342 (hinting << SkScalerContext::kHinting_Shift); | 344 (hinting << SkScalerContext::kHinting_Shift); |
343 } | 345 } |
344 | 346 |
345 | 347 |
346 #endif | 348 #endif |
OLD | NEW |