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 12 matching lines...) Expand all Loading... |
23 class SkWriteBuffer; | 23 class SkWriteBuffer; |
24 class SkGlyph; | 24 class SkGlyph; |
25 struct SkRect; | 25 struct SkRect; |
26 class SkGlyphCache; | 26 class SkGlyphCache; |
27 class SkImageFilter; | 27 class SkImageFilter; |
28 class SkMaskFilter; | 28 class SkMaskFilter; |
29 class SkPath; | 29 class SkPath; |
30 class SkPathEffect; | 30 class SkPathEffect; |
31 struct SkPoint; | 31 struct SkPoint; |
32 class SkRasterizer; | 32 class SkRasterizer; |
| 33 struct SkScalerContextEffects; |
33 class SkShader; | 34 class SkShader; |
34 class SkSurfaceProps; | 35 class SkSurfaceProps; |
35 class SkTypeface; | 36 class SkTypeface; |
36 | 37 |
37 #define kBicubicFilterBitmap_Flag kHighQualityFilterBitmap_Flag | 38 #define kBicubicFilterBitmap_Flag kHighQualityFilterBitmap_Flag |
38 | 39 |
39 /** \class SkPaint | 40 /** \class SkPaint |
40 | 41 |
41 The SkPaint class holds the style and color information about how to draw | 42 The SkPaint class holds the style and color information about how to draw |
42 geometries, text and bitmaps. | 43 geometries, text and bitmaps. |
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1086 int* count, SkRect* bounds) const; | 1087 int* count, SkRect* bounds) const; |
1087 | 1088 |
1088 enum class FakeGamma { | 1089 enum class FakeGamma { |
1089 Off = 0, On | 1090 Off = 0, On |
1090 }; | 1091 }; |
1091 | 1092 |
1092 /* | 1093 /* |
1093 * Allocs an SkDescriptor on the heap and return it to the caller as a refcn
ted | 1094 * Allocs an SkDescriptor on the heap and return it to the caller as a refcn
ted |
1094 * SkData. Caller is responsible for managing the lifetime of this object. | 1095 * SkData. Caller is responsible for managing the lifetime of this object. |
1095 */ | 1096 */ |
1096 void getScalerContextDescriptor(SkAutoDescriptor*, const SkSurfaceProps& sur
faceProps, | 1097 void getScalerContextDescriptor(SkAutoDescriptor*, SkScalerContextEffects*, |
1097 FakeGamma fakeGamma, const SkMatrix*) const; | 1098 const SkSurfaceProps&, FakeGamma, const SkMa
trix*) const; |
1098 | 1099 |
1099 SkGlyphCache* detachCache(const SkSurfaceProps* surfaceProps, FakeGamma fake
Gamma, | 1100 SkGlyphCache* detachCache(const SkSurfaceProps* surfaceProps, FakeGamma fake
Gamma, |
1100 const SkMatrix*) const; | 1101 const SkMatrix*) const; |
1101 | 1102 |
1102 void descriptorProc(const SkSurfaceProps* surfaceProps, FakeGamma fakeGamma, | 1103 void descriptorProc(const SkSurfaceProps* surfaceProps, FakeGamma fakeGamma, |
1103 const SkMatrix* deviceMatrix, | 1104 const SkMatrix* deviceMatrix, |
1104 void (*proc)(SkTypeface*, const SkDescriptor*, void*), | 1105 void (*proc)(SkTypeface*, const SkScalerContextEffects&, |
| 1106 const SkDescriptor*, void*), |
1105 void* context) const; | 1107 void* context) const; |
1106 | 1108 |
1107 /* | 1109 /* |
1108 * The luminance color is used to determine which Gamma Canonical color to m
ap to. This is | 1110 * The luminance color is used to determine which Gamma Canonical color to m
ap to. This is |
1109 * really only used by backends which want to cache glyph masks, and need so
me way to know if | 1111 * really only used by backends which want to cache glyph masks, and need so
me way to know if |
1110 * they need to generate new masks based off a given color. | 1112 * they need to generate new masks based off a given color. |
1111 */ | 1113 */ |
1112 SkColor computeLuminanceColor() const; | 1114 SkColor computeLuminanceColor() const; |
1113 | 1115 |
1114 enum { | 1116 enum { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 friend class GrStencilAndCoverTextContext; | 1161 friend class GrStencilAndCoverTextContext; |
1160 friend class GrPathRendering; | 1162 friend class GrPathRendering; |
1161 friend class GrTextUtils; | 1163 friend class GrTextUtils; |
1162 friend class GrGLPathRendering; | 1164 friend class GrGLPathRendering; |
1163 friend class SkScalerContext; | 1165 friend class SkScalerContext; |
1164 friend class SkTextBaseIter; | 1166 friend class SkTextBaseIter; |
1165 friend class SkCanonicalizePaint; | 1167 friend class SkCanonicalizePaint; |
1166 }; | 1168 }; |
1167 | 1169 |
1168 #endif | 1170 #endif |
OLD | NEW |