| 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 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 static const SkScalar kMag2Max = kMaxSize * kMaxSize; | 1095 static const SkScalar kMag2Max = kMaxSize * kMaxSize; |
| 1096 return kMag2Max; | 1096 return kMag2Max; |
| 1097 } | 1097 } |
| 1098 | 1098 |
| 1099 friend class SkAutoGlyphCache; | 1099 friend class SkAutoGlyphCache; |
| 1100 friend class SkAutoGlyphCacheNoGamma; | 1100 friend class SkAutoGlyphCacheNoGamma; |
| 1101 friend class SkCanvas; | 1101 friend class SkCanvas; |
| 1102 friend class SkDraw; | 1102 friend class SkDraw; |
| 1103 friend class SkGraphics; // So Term() can be called. | 1103 friend class SkGraphics; // So Term() can be called. |
| 1104 friend class SkPDFDevice; | 1104 friend class SkPDFDevice; |
| 1105 friend class GrTextContext; |
| 1105 friend class GrBitmapTextContext; | 1106 friend class GrBitmapTextContext; |
| 1106 friend class GrDistanceFieldTextContext; | 1107 friend class GrDistanceFieldTextContext; |
| 1107 friend class GrStencilAndCoverTextContext; | 1108 friend class GrStencilAndCoverTextContext; |
| 1108 friend class GrPathRendering; | 1109 friend class GrPathRendering; |
| 1109 friend class GrGLPathRendering; | 1110 friend class GrGLPathRendering; |
| 1110 friend class SkTextToPathIter; | 1111 friend class SkTextToPathIter; |
| 1111 friend class SkCanonicalizePaint; | 1112 friend class SkCanonicalizePaint; |
| 1112 | 1113 |
| 1113 #ifdef SK_BUILD_FOR_ANDROID | 1114 #ifdef SK_BUILD_FOR_ANDROID |
| 1114 // In order for the == operator to work properly this must be the last field | 1115 // In order for the == operator to work properly this must be the last field |
| 1115 // in the struct so that we can do a memcmp to this field's offset. | 1116 // in the struct so that we can do a memcmp to this field's offset. |
| 1116 uint32_t fGenerationID; | 1117 uint32_t fGenerationID; |
| 1117 #endif | 1118 #endif |
| 1118 }; | 1119 }; |
| 1119 | 1120 |
| 1120 #endif | 1121 #endif |
| OLD | NEW |