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 |
11 #include "SkColor.h" | 11 #include "SkColor.h" |
12 #include "SkDrawLooper.h" | 12 #include "SkDrawLooper.h" |
13 #include "SkFilterQuality.h" | 13 #include "SkFilterQuality.h" |
14 #include "SkMatrix.h" | 14 #include "SkMatrix.h" |
15 #include "SkXfermode.h" | 15 #include "SkXfermode.h" |
16 | 16 |
17 class SkAnnotation; | 17 class SkAnnotation; |
| 18 class SkAutoDescriptor; |
18 class SkAutoGlyphCache; | 19 class SkAutoGlyphCache; |
19 class SkColorFilter; | 20 class SkColorFilter; |
20 class SkData; | 21 class SkData; |
21 class SkDescriptor; | 22 class SkDescriptor; |
22 struct SkDeviceProperties; | 23 struct SkDeviceProperties; |
23 class SkReadBuffer; | 24 class SkReadBuffer; |
24 class SkWriteBuffer; | 25 class SkWriteBuffer; |
25 class SkGlyph; | 26 class SkGlyph; |
26 struct SkRect; | 27 struct SkRect; |
27 class SkGlyphCache; | 28 class SkGlyphCache; |
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1058 SkDrawCacheProc getDrawCacheProc() const; | 1059 SkDrawCacheProc getDrawCacheProc() const; |
1059 SkMeasureCacheProc getMeasureCacheProc(bool needFullMetrics) const; | 1060 SkMeasureCacheProc getMeasureCacheProc(bool needFullMetrics) const; |
1060 | 1061 |
1061 SkScalar measure_text(SkGlyphCache*, const char* text, size_t length, | 1062 SkScalar measure_text(SkGlyphCache*, const char* text, size_t length, |
1062 int* count, SkRect* bounds) const; | 1063 int* count, SkRect* bounds) const; |
1063 | 1064 |
1064 /* | 1065 /* |
1065 * Allocs an SkDescriptor on the heap and return it to the caller as a refcn
ted | 1066 * Allocs an SkDescriptor on the heap and return it to the caller as a refcn
ted |
1066 * SkData. Caller is responsible for managing the lifetime of this object. | 1067 * SkData. Caller is responsible for managing the lifetime of this object. |
1067 */ | 1068 */ |
1068 const SkData* getScalerContextDescriptor(const SkDeviceProperties* devicePro
perties, | 1069 void getScalerContextDescriptor(SkAutoDescriptor*, const SkDeviceProperties*
deviceProperties, |
1069 const SkMatrix*, bool ignoreGamma)
const; | 1070 const SkMatrix*, bool ignoreGamma) const; |
1070 | 1071 |
1071 SkGlyphCache* detachCache(const SkDeviceProperties* deviceProperties, const
SkMatrix*, | 1072 SkGlyphCache* detachCache(const SkDeviceProperties* deviceProperties, const
SkMatrix*, |
1072 bool ignoreGamma) const; | 1073 bool ignoreGamma) const; |
1073 | 1074 |
1074 void descriptorProc(const SkDeviceProperties* deviceProperties, const SkMatr
ix* deviceMatrix, | 1075 void descriptorProc(const SkDeviceProperties* deviceProperties, const SkMatr
ix* deviceMatrix, |
1075 void (*proc)(SkTypeface*, const SkDescriptor*, void*), | 1076 void (*proc)(SkTypeface*, const SkDescriptor*, void*), |
1076 void* context, bool ignoreGamma = false) const; | 1077 void* context, bool ignoreGamma = false) const; |
1077 | 1078 |
1078 static void Term(); | 1079 static void Term(); |
1079 | 1080 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 friend class GrDistanceFieldTextContext; | 1127 friend class GrDistanceFieldTextContext; |
1127 friend class GrStencilAndCoverTextContext; | 1128 friend class GrStencilAndCoverTextContext; |
1128 friend class GrPathRendering; | 1129 friend class GrPathRendering; |
1129 friend class GrTextContext; | 1130 friend class GrTextContext; |
1130 friend class GrGLPathRendering; | 1131 friend class GrGLPathRendering; |
1131 friend class SkTextToPathIter; | 1132 friend class SkTextToPathIter; |
1132 friend class SkCanonicalizePaint; | 1133 friend class SkCanonicalizePaint; |
1133 }; | 1134 }; |
1134 | 1135 |
1135 #endif | 1136 #endif |
OLD | NEW |