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

Side by Side Diff: include/core/SkPaint.h

Issue 2163633002: Make SkFont a bit more useable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix bug Created 4 years, 5 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 | « include/core/SkFont.h ('k') | src/core/SkDraw.cpp » ('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 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
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
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
OLDNEW
« no previous file with comments | « include/core/SkFont.h ('k') | src/core/SkDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698