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

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

Issue 354433002: Revert of Fix SkPaint::measureText for stroked hairline text (Closed) Base URL: https://skia.googlesource.com/skia.git@01-draw-fonts-nvpr-extract-state-procs
Patch Set: Created 6 years, 6 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 | « gyp/gmslides.gypi ('k') | src/core/SkPaint.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 2
3 /* 3 /*
4 * Copyright 2006 The Android Open Source Project 4 * Copyright 2006 The Android Open Source Project
5 * 5 *
6 * Use of this source code is governed by a BSD-style license that can be 6 * Use of this source code is governed by a BSD-style license that can be
7 * found in the LICENSE file. 7 * found in the LICENSE file.
8 */ 8 */
9 9
10 10
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 /* 1110 /*
1111 * Above this size (taking into account CTM and textSize), we never use 1111 * Above this size (taking into account CTM and textSize), we never use
1112 * the cache for bits or metrics (we might overflow), so we just ask 1112 * the cache for bits or metrics (we might overflow), so we just ask
1113 * for a caononical size and post-transform that. 1113 * for a caononical size and post-transform that.
1114 */ 1114 */
1115 kMaxSizeForGlyphCache = 256, 1115 kMaxSizeForGlyphCache = 256,
1116 }; 1116 };
1117 1117
1118 static bool TooBigToUseCache(const SkMatrix& ctm, const SkMatrix& textM); 1118 static bool TooBigToUseCache(const SkMatrix& ctm, const SkMatrix& textM);
1119 1119
1120 bool tooBigToUseCache() const;
1121 bool tooBigToUseCache(const SkMatrix& ctm) const;
1122
1120 // Set flags/hinting/textSize up to use for drawing text as paths. 1123 // Set flags/hinting/textSize up to use for drawing text as paths.
1121 // Returns scale factor to restore the original textSize, since will will 1124 // Returns scale factor to restore the original textSize, since will will
1122 // have change it to kCanonicalTextSizeForPaths. 1125 // have change it to kCanonicalTextSizeForPaths.
1123 SkScalar setupForAsPaths(); 1126 SkScalar setupForAsPaths();
1124 1127
1125 static SkScalar MaxCacheSize2() { 1128 static SkScalar MaxCacheSize2() {
1126 static const SkScalar kMaxSize = SkIntToScalar(kMaxSizeForGlyphCache); 1129 static const SkScalar kMaxSize = SkIntToScalar(kMaxSizeForGlyphCache);
1127 static const SkScalar kMag2Max = kMaxSize * kMaxSize; 1130 static const SkScalar kMag2Max = kMaxSize * kMaxSize;
1128 return kMag2Max; 1131 return kMag2Max;
1129 } 1132 }
(...skipping 12 matching lines...) Expand all
1142 #ifdef SK_BUILD_FOR_ANDROID 1145 #ifdef SK_BUILD_FOR_ANDROID
1143 SkPaintOptionsAndroid fPaintOptionsAndroid; 1146 SkPaintOptionsAndroid fPaintOptionsAndroid;
1144 1147
1145 // In order for the == operator to work properly this must be the last field 1148 // In order for the == operator to work properly this must be the last field
1146 // in the struct so that we can do a memcmp to this field's offset. 1149 // in the struct so that we can do a memcmp to this field's offset.
1147 uint32_t fGenerationID; 1150 uint32_t fGenerationID;
1148 #endif 1151 #endif
1149 }; 1152 };
1150 1153
1151 #endif 1154 #endif
OLDNEW
« no previous file with comments | « gyp/gmslides.gypi ('k') | src/core/SkPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698