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 SkPaint_DEFINED | 8 #ifndef SkPaint_DEFINED |
9 #define SkPaint_DEFINED | 9 #define SkPaint_DEFINED |
10 | 10 |
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 unsigned fJoinType : 2; | 1078 unsigned fJoinType : 2; |
1079 unsigned fStyle : 2; | 1079 unsigned fStyle : 2; |
1080 unsigned fTextEncoding : 2; // 3 values | 1080 unsigned fTextEncoding : 2; // 3 values |
1081 unsigned fHinting : 2; | 1081 unsigned fHinting : 2; |
1082 unsigned fFilterQuality : 2; | 1082 unsigned fFilterQuality : 2; |
1083 //unsigned fFreeBits : 2; | 1083 //unsigned fFreeBits : 2; |
1084 } fBitfields; | 1084 } fBitfields; |
1085 uint32_t fBitfieldsUInt; | 1085 uint32_t fBitfieldsUInt; |
1086 }; | 1086 }; |
1087 | 1087 |
1088 GlyphCacheProc getGlyphCacheProc(bool needFullMetrics) const; | 1088 static GlyphCacheProc GetGlyphCacheProc(TextEncoding encoding, |
| 1089 bool isDevKern, |
| 1090 bool needFullMetrics); |
1089 | 1091 |
1090 SkScalar measure_text(SkGlyphCache*, const char* text, size_t length, | 1092 SkScalar measure_text(SkGlyphCache*, const char* text, size_t length, |
1091 int* count, SkRect* bounds) const; | 1093 int* count, SkRect* bounds) const; |
1092 | 1094 |
1093 enum ScalerContextFlags : uint32_t { | 1095 enum ScalerContextFlags : uint32_t { |
1094 kNone_ScalerContextFlags = 0, | 1096 kNone_ScalerContextFlags = 0, |
1095 | 1097 |
1096 kFakeGamma_ScalerContextFlag = 1 << 0, | 1098 kFakeGamma_ScalerContextFlag = 1 << 0, |
1097 kBoostContrast_ScalerContextFlag = 1 << 1, | 1099 kBoostContrast_ScalerContextFlag = 1 << 1, |
1098 | 1100 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 friend class GrStencilAndCoverTextContext; | 1174 friend class GrStencilAndCoverTextContext; |
1173 friend class GrPathRendering; | 1175 friend class GrPathRendering; |
1174 friend class GrTextUtils; | 1176 friend class GrTextUtils; |
1175 friend class GrGLPathRendering; | 1177 friend class GrGLPathRendering; |
1176 friend class SkScalerContext; | 1178 friend class SkScalerContext; |
1177 friend class SkTextBaseIter; | 1179 friend class SkTextBaseIter; |
1178 friend class SkCanonicalizePaint; | 1180 friend class SkCanonicalizePaint; |
1179 }; | 1181 }; |
1180 | 1182 |
1181 #endif | 1183 #endif |
OLD | NEW |