| 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; | |
| 34 class SkShader; | 33 class SkShader; |
| 35 class SkSurfaceProps; | 34 class SkSurfaceProps; |
| 36 class SkTypeface; | 35 class SkTypeface; |
| 37 | 36 |
| 38 #define kBicubicFilterBitmap_Flag kHighQualityFilterBitmap_Flag | 37 #define kBicubicFilterBitmap_Flag kHighQualityFilterBitmap_Flag |
| 39 | 38 |
| 40 /** \class SkPaint | 39 /** \class SkPaint |
| 41 | 40 |
| 42 The SkPaint class holds the style and color information about how to draw | 41 The SkPaint class holds the style and color information about how to draw |
| 43 geometries, text and bitmaps. | 42 geometries, text and bitmaps. |
| (...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1093 kBoostContrast_ScalerContextFlag = 1 << 1, | 1092 kBoostContrast_ScalerContextFlag = 1 << 1, |
| 1094 | 1093 |
| 1095 kFakeGammaAndBoostContrast_ScalerContextFlags = | 1094 kFakeGammaAndBoostContrast_ScalerContextFlags = |
| 1096 kFakeGamma_ScalerContextFlag | kBoostContrast_ScalerContextFlag, | 1095 kFakeGamma_ScalerContextFlag | kBoostContrast_ScalerContextFlag, |
| 1097 }; | 1096 }; |
| 1098 | 1097 |
| 1099 /* | 1098 /* |
| 1100 * Allocs an SkDescriptor on the heap and return it to the caller as a refcn
ted | 1099 * Allocs an SkDescriptor on the heap and return it to the caller as a refcn
ted |
| 1101 * SkData. Caller is responsible for managing the lifetime of this object. | 1100 * SkData. Caller is responsible for managing the lifetime of this object. |
| 1102 */ | 1101 */ |
| 1103 void getScalerContextDescriptor(SkScalerContextEffects*, SkAutoDescriptor*, | 1102 void getScalerContextDescriptor(SkAutoDescriptor*, const SkSurfaceProps& sur
faceProps, |
| 1104 const SkSurfaceProps& surfaceProps, | |
| 1105 uint32_t scalerContextFlags, const SkMatrix*
) const; | 1103 uint32_t scalerContextFlags, const SkMatrix*
) const; |
| 1106 | 1104 |
| 1107 SkGlyphCache* detachCache(const SkSurfaceProps* surfaceProps, uint32_t scale
rContextFlags, | 1105 SkGlyphCache* detachCache(const SkSurfaceProps* surfaceProps, uint32_t scale
rContextFlags, |
| 1108 const SkMatrix*) const; | 1106 const SkMatrix*) const; |
| 1109 | 1107 |
| 1110 void descriptorProc(const SkSurfaceProps* surfaceProps, uint32_t scalerConte
xtFlags, | 1108 void descriptorProc(const SkSurfaceProps* surfaceProps, uint32_t scalerConte
xtFlags, |
| 1111 const SkMatrix* deviceMatrix, | 1109 const SkMatrix* deviceMatrix, |
| 1112 void (*proc)(SkTypeface*, const SkScalerContextEffects&, | 1110 void (*proc)(SkTypeface*, const SkDescriptor*, void*), |
| 1113 const SkDescriptor*, void*), | |
| 1114 void* context) const; | 1111 void* context) const; |
| 1115 | 1112 |
| 1116 /* | 1113 /* |
| 1117 * The luminance color is used to determine which Gamma Canonical color to m
ap to. This is | 1114 * The luminance color is used to determine which Gamma Canonical color to m
ap to. This is |
| 1118 * really only used by backends which want to cache glyph masks, and need so
me way to know if | 1115 * really only used by backends which want to cache glyph masks, and need so
me way to know if |
| 1119 * they need to generate new masks based off a given color. | 1116 * they need to generate new masks based off a given color. |
| 1120 */ | 1117 */ |
| 1121 SkColor computeLuminanceColor() const; | 1118 SkColor computeLuminanceColor() const; |
| 1122 | 1119 |
| 1123 enum { | 1120 enum { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1168 friend class GrStencilAndCoverTextContext; | 1165 friend class GrStencilAndCoverTextContext; |
| 1169 friend class GrPathRendering; | 1166 friend class GrPathRendering; |
| 1170 friend class GrTextUtils; | 1167 friend class GrTextUtils; |
| 1171 friend class GrGLPathRendering; | 1168 friend class GrGLPathRendering; |
| 1172 friend class SkScalerContext; | 1169 friend class SkScalerContext; |
| 1173 friend class SkTextBaseIter; | 1170 friend class SkTextBaseIter; |
| 1174 friend class SkCanonicalizePaint; | 1171 friend class SkCanonicalizePaint; |
| 1175 }; | 1172 }; |
| 1176 | 1173 |
| 1177 #endif | 1174 #endif |
| OLD | NEW |