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

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

Issue 1076593002: Start canonicalizing color for all A8 textblobs (Closed) Base URL: https://skia.googlesource.com/skia.git@atcachemasks
Patch Set: adding gm Created 5 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
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 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 void getScalerContextDescriptor(SkAutoDescriptor*, const SkDeviceProperties* deviceProperties, 1069 void getScalerContextDescriptor(SkAutoDescriptor*, const SkDeviceProperties* deviceProperties,
1070 const SkMatrix*, bool ignoreGamma) const; 1070 const SkMatrix*, bool ignoreGamma) const;
1071 1071
1072 SkGlyphCache* detachCache(const SkDeviceProperties* deviceProperties, const SkMatrix*, 1072 SkGlyphCache* detachCache(const SkDeviceProperties* deviceProperties, const SkMatrix*,
1073 bool ignoreGamma) const; 1073 bool ignoreGamma) const;
1074 1074
1075 void descriptorProc(const SkDeviceProperties* deviceProperties, const SkMatr ix* deviceMatrix, 1075 void descriptorProc(const SkDeviceProperties* deviceProperties, const SkMatr ix* deviceMatrix,
1076 void (*proc)(SkTypeface*, const SkDescriptor*, void*), 1076 void (*proc)(SkTypeface*, const SkDescriptor*, void*),
1077 void* context, bool ignoreGamma = false) const; 1077 void* context, bool ignoreGamma = false) const;
1078 1078
1079 SkColor computeLuminanceColor() const;
bsalomon 2015/04/13 15:16:38 comment about what luminance color is? Or is this
1080
1079 static void Term(); 1081 static void Term();
1080 1082
1081 enum { 1083 enum {
1082 /* This is the size we use when we ask for a glyph's path. We then 1084 /* This is the size we use when we ask for a glyph's path. We then
1083 * post-transform it as we draw to match the request. 1085 * post-transform it as we draw to match the request.
1084 * This is done to try to re-use cache entries for the path. 1086 * This is done to try to re-use cache entries for the path.
1085 * 1087 *
1086 * This value is somewhat arbitrary. In theory, it could be 1, since 1088 * This value is somewhat arbitrary. In theory, it could be 1, since
1087 * we store paths as floats. However, we get the path from the font 1089 * we store paths as floats. However, we get the path from the font
1088 * scaler, and it may represent its paths as fixed-point (or 26.6), 1090 * scaler, and it may represent its paths as fixed-point (or 26.6),
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 friend class SkDraw; 1124 friend class SkDraw;
1123 friend class SkGraphics; // So Term() can be called. 1125 friend class SkGraphics; // So Term() can be called.
1124 friend class SkPDFDevice; 1126 friend class SkPDFDevice;
1125 friend class GrBitmapTextContext; 1127 friend class GrBitmapTextContext;
1126 friend class GrAtlasTextContext; 1128 friend class GrAtlasTextContext;
1127 friend class GrDistanceFieldTextContext; 1129 friend class GrDistanceFieldTextContext;
1128 friend class GrStencilAndCoverTextContext; 1130 friend class GrStencilAndCoverTextContext;
1129 friend class GrPathRendering; 1131 friend class GrPathRendering;
1130 friend class GrTextContext; 1132 friend class GrTextContext;
1131 friend class GrGLPathRendering; 1133 friend class GrGLPathRendering;
1134 friend class SkScalerContext;
1132 friend class SkTextToPathIter; 1135 friend class SkTextToPathIter;
1133 friend class SkCanonicalizePaint; 1136 friend class SkCanonicalizePaint;
1134 }; 1137 };
1135 1138
1136 #endif 1139 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698