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

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

Issue 1880873002: Revert "Revert of Pass effects directly to fontcache (patchset #8 id:140001 of https://codereview.c… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | include/core/SkTypeface.h » ('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 12 matching lines...) Expand all
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 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 kBoostContrast_ScalerContextFlag = 1 << 1, 1093 kBoostContrast_ScalerContextFlag = 1 << 1,
1093 1094
1094 kFakeGammaAndBoostContrast_ScalerContextFlags = 1095 kFakeGammaAndBoostContrast_ScalerContextFlags =
1095 kFakeGamma_ScalerContextFlag | kBoostContrast_ScalerContextFlag, 1096 kFakeGamma_ScalerContextFlag | kBoostContrast_ScalerContextFlag,
1096 }; 1097 };
1097 1098
1098 /* 1099 /*
1099 * Allocs an SkDescriptor on the heap and return it to the caller as a refcn ted 1100 * Allocs an SkDescriptor on the heap and return it to the caller as a refcn ted
1100 * SkData. Caller is responsible for managing the lifetime of this object. 1101 * SkData. Caller is responsible for managing the lifetime of this object.
1101 */ 1102 */
1102 void getScalerContextDescriptor(SkAutoDescriptor*, const SkSurfaceProps& sur faceProps, 1103 void getScalerContextDescriptor(SkScalerContextEffects*, SkAutoDescriptor*,
1104 const SkSurfaceProps& surfaceProps,
1103 uint32_t scalerContextFlags, const SkMatrix* ) const; 1105 uint32_t scalerContextFlags, const SkMatrix* ) const;
1104 1106
1105 SkGlyphCache* detachCache(const SkSurfaceProps* surfaceProps, uint32_t scale rContextFlags, 1107 SkGlyphCache* detachCache(const SkSurfaceProps* surfaceProps, uint32_t scale rContextFlags,
1106 const SkMatrix*) const; 1108 const SkMatrix*) const;
1107 1109
1108 void descriptorProc(const SkSurfaceProps* surfaceProps, uint32_t scalerConte xtFlags, 1110 void descriptorProc(const SkSurfaceProps* surfaceProps, uint32_t scalerConte xtFlags,
1109 const SkMatrix* deviceMatrix, 1111 const SkMatrix* deviceMatrix,
1110 void (*proc)(SkTypeface*, const SkDescriptor*, void*), 1112 void (*proc)(SkTypeface*, const SkScalerContextEffects&,
1113 const SkDescriptor*, void*),
1111 void* context) const; 1114 void* context) const;
1112 1115
1113 /* 1116 /*
1114 * The luminance color is used to determine which Gamma Canonical color to m ap to. This is 1117 * The luminance color is used to determine which Gamma Canonical color to m ap to. This is
1115 * really only used by backends which want to cache glyph masks, and need so me way to know if 1118 * really only used by backends which want to cache glyph masks, and need so me way to know if
1116 * they need to generate new masks based off a given color. 1119 * they need to generate new masks based off a given color.
1117 */ 1120 */
1118 SkColor computeLuminanceColor() const; 1121 SkColor computeLuminanceColor() const;
1119 1122
1120 enum { 1123 enum {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 friend class GrStencilAndCoverTextContext; 1168 friend class GrStencilAndCoverTextContext;
1166 friend class GrPathRendering; 1169 friend class GrPathRendering;
1167 friend class GrTextUtils; 1170 friend class GrTextUtils;
1168 friend class GrGLPathRendering; 1171 friend class GrGLPathRendering;
1169 friend class SkScalerContext; 1172 friend class SkScalerContext;
1170 friend class SkTextBaseIter; 1173 friend class SkTextBaseIter;
1171 friend class SkCanonicalizePaint; 1174 friend class SkCanonicalizePaint;
1172 }; 1175 };
1173 1176
1174 #endif 1177 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkTypeface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698