Chromium Code Reviews| 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 // TODO: clean up Skia internals so we can remove this and only keep it for clie nts | 17 // TODO: clean up Skia internals so we can remove this and only keep it for clie nts |
| 18 #define SK_SUPPORT_LEGACY_FILTERLEVEL_ENUM | 18 #define SK_SUPPORT_LEGACY_FILTERLEVEL_ENUM |
| 19 | 19 |
| 20 class SkAnnotation; | 20 class SkAnnotation; |
| 21 class SkAutoGlyphCache; | 21 class SkAutoGlyphCache; |
| 22 class SkColorFilter; | 22 class SkColorFilter; |
| 23 class SkData; | |
| 23 class SkDescriptor; | 24 class SkDescriptor; |
| 24 struct SkDeviceProperties; | 25 struct SkDeviceProperties; |
| 25 class SkReadBuffer; | 26 class SkReadBuffer; |
| 26 class SkWriteBuffer; | 27 class SkWriteBuffer; |
| 27 class SkGlyph; | 28 class SkGlyph; |
| 28 struct SkRect; | 29 struct SkRect; |
| 29 class SkGlyphCache; | 30 class SkGlyphCache; |
| 30 class SkImageFilter; | 31 class SkImageFilter; |
| 31 class SkMaskFilter; | 32 class SkMaskFilter; |
| 32 class SkPath; | 33 class SkPath; |
| (...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1073 } fBitfields; | 1074 } fBitfields; |
| 1074 uint32_t fBitfieldsUInt; | 1075 uint32_t fBitfieldsUInt; |
| 1075 }; | 1076 }; |
| 1076 | 1077 |
| 1077 SkDrawCacheProc getDrawCacheProc() const; | 1078 SkDrawCacheProc getDrawCacheProc() const; |
| 1078 SkMeasureCacheProc getMeasureCacheProc(bool needFullMetrics) const; | 1079 SkMeasureCacheProc getMeasureCacheProc(bool needFullMetrics) const; |
| 1079 | 1080 |
| 1080 SkScalar measure_text(SkGlyphCache*, const char* text, size_t length, | 1081 SkScalar measure_text(SkGlyphCache*, const char* text, size_t length, |
| 1081 int* count, SkRect* bounds) const; | 1082 int* count, SkRect* bounds) const; |
| 1082 | 1083 |
| 1084 /* | |
| 1085 * Allocs a descriptor on the heap and return it to the caller as a refcnted SkData. Caller is | |
| 1086 * responsible for managing the lifetime of this object. | |
| 1087 */ | |
| 1088 const SkData* getDescriptor(const SkDeviceProperties* deviceProperties, cons t SkMatrix*, | |
|
bungeman-skia
2015/03/13 14:48:30
This name if a bit misleading. It doesn't return a
| |
| 1089 bool ignoreGamma) const; | |
| 1090 | |
| 1083 SkGlyphCache* detachCache(const SkDeviceProperties* deviceProperties, const SkMatrix*, | 1091 SkGlyphCache* detachCache(const SkDeviceProperties* deviceProperties, const SkMatrix*, |
| 1084 bool ignoreGamma) const; | 1092 bool ignoreGamma) const; |
| 1085 | 1093 |
| 1086 void descriptorProc(const SkDeviceProperties* deviceProperties, const SkMatr ix* deviceMatrix, | 1094 void descriptorProc(const SkDeviceProperties* deviceProperties, const SkMatr ix* deviceMatrix, |
| 1087 void (*proc)(SkTypeface*, const SkDescriptor*, void*), | 1095 void (*proc)(SkTypeface*, const SkDescriptor*, void*), |
| 1088 void* context, bool ignoreGamma = false) const; | 1096 void* context, bool ignoreGamma = false) const; |
| 1089 | 1097 |
| 1090 static void Term(); | 1098 static void Term(); |
| 1091 | 1099 |
| 1092 enum { | 1100 enum { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1136 friend class GrBitmapTextContext; | 1144 friend class GrBitmapTextContext; |
| 1137 friend class GrDistanceFieldTextContext; | 1145 friend class GrDistanceFieldTextContext; |
| 1138 friend class GrStencilAndCoverTextContext; | 1146 friend class GrStencilAndCoverTextContext; |
| 1139 friend class GrPathRendering; | 1147 friend class GrPathRendering; |
| 1140 friend class GrGLPathRendering; | 1148 friend class GrGLPathRendering; |
| 1141 friend class SkTextToPathIter; | 1149 friend class SkTextToPathIter; |
| 1142 friend class SkCanonicalizePaint; | 1150 friend class SkCanonicalizePaint; |
| 1143 }; | 1151 }; |
| 1144 | 1152 |
| 1145 #endif | 1153 #endif |
| OLD | NEW |