OLD | NEW |
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 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 static const SkScalar kMaxSize = SkIntToScalar(kMaxSizeForGlyphCache); | 1063 static const SkScalar kMaxSize = SkIntToScalar(kMaxSizeForGlyphCache); |
1064 static const SkScalar kMag2Max = kMaxSize * kMaxSize; | 1064 static const SkScalar kMag2Max = kMaxSize * kMaxSize; |
1065 return kMag2Max; | 1065 return kMag2Max; |
1066 } | 1066 } |
1067 | 1067 |
1068 friend class SkAutoGlyphCache; | 1068 friend class SkAutoGlyphCache; |
1069 friend class SkCanvas; | 1069 friend class SkCanvas; |
1070 friend class SkDraw; | 1070 friend class SkDraw; |
1071 friend class SkGraphics; // So Term() can be called. | 1071 friend class SkGraphics; // So Term() can be called. |
1072 friend class SkPDFDevice; | 1072 friend class SkPDFDevice; |
| 1073 friend class GrBitmapTextContext; |
1073 friend class GrDistanceFieldTextContext; | 1074 friend class GrDistanceFieldTextContext; |
1074 friend class SkTextToPathIter; | 1075 friend class SkTextToPathIter; |
1075 friend class SkCanonicalizePaint; | 1076 friend class SkCanonicalizePaint; |
1076 | 1077 |
1077 #ifdef SK_BUILD_FOR_ANDROID | 1078 #ifdef SK_BUILD_FOR_ANDROID |
1078 SkPaintOptionsAndroid fPaintOptionsAndroid; | 1079 SkPaintOptionsAndroid fPaintOptionsAndroid; |
1079 | 1080 |
1080 // In order for the == operator to work properly this must be the last field | 1081 // In order for the == operator to work properly this must be the last field |
1081 // in the struct so that we can do a memcmp to this field's offset. | 1082 // in the struct so that we can do a memcmp to this field's offset. |
1082 uint32_t fGenerationID; | 1083 uint32_t fGenerationID; |
1083 #endif | 1084 #endif |
1084 }; | 1085 }; |
1085 | 1086 |
1086 #endif | 1087 #endif |
OLD | NEW |