| 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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 SkDrawCacheProc getDrawCacheProc() const; | 967 SkDrawCacheProc getDrawCacheProc() const; |
| 968 SkMeasureCacheProc getMeasureCacheProc(TextBufferDirection dir, | 968 SkMeasureCacheProc getMeasureCacheProc(TextBufferDirection dir, |
| 969 bool needFullMetrics) const; | 969 bool needFullMetrics) const; |
| 970 | 970 |
| 971 SkScalar measure_text(SkGlyphCache*, const char* text, size_t length, | 971 SkScalar measure_text(SkGlyphCache*, const char* text, size_t length, |
| 972 int* count, SkRect* bounds) const; | 972 int* count, SkRect* bounds) const; |
| 973 | 973 |
| 974 SkGlyphCache* detachCache(const SkDeviceProperties* deviceProperties, const
SkMatrix*) const; | 974 SkGlyphCache* detachCache(const SkDeviceProperties* deviceProperties, const
SkMatrix*) const; |
| 975 | 975 |
| 976 void descriptorProc(const SkDeviceProperties* deviceProperties, const SkMatr
ix* deviceMatrix, | 976 void descriptorProc(const SkDeviceProperties* deviceProperties, const SkMatr
ix* deviceMatrix, |
| 977 void (*proc)(const SkDescriptor*, void*), | 977 void (*proc)(SkTypeface*, const SkDescriptor*, void*), |
| 978 void* context, bool ignoreGamma = false) const; | 978 void* context, bool ignoreGamma = false) const; |
| 979 | 979 |
| 980 static void Term(); | 980 static void Term(); |
| 981 | 981 |
| 982 enum { | 982 enum { |
| 983 kCanonicalTextSizeForPaths = 64 | 983 kCanonicalTextSizeForPaths = 64 |
| 984 }; | 984 }; |
| 985 friend class SkAutoGlyphCache; | 985 friend class SkAutoGlyphCache; |
| 986 friend class SkCanvas; | 986 friend class SkCanvas; |
| 987 friend class SkDraw; | 987 friend class SkDraw; |
| 988 friend class SkGraphics; // So Term() can be called. | 988 friend class SkGraphics; // So Term() can be called. |
| 989 friend class SkPDFDevice; | 989 friend class SkPDFDevice; |
| 990 friend class SkTextToPathIter; | 990 friend class SkTextToPathIter; |
| 991 | 991 |
| 992 #ifdef SK_BUILD_FOR_ANDROID | 992 #ifdef SK_BUILD_FOR_ANDROID |
| 993 // In order for the == operator to work properly this must be the last field | 993 // In order for the == operator to work properly this must be the last field |
| 994 // in the struct so that we can do a memcmp to this field's offset. | 994 // in the struct so that we can do a memcmp to this field's offset. |
| 995 uint32_t fGenerationID; | 995 uint32_t fGenerationID; |
| 996 #endif | 996 #endif |
| 997 }; | 997 }; |
| 998 | 998 |
| 999 #endif | 999 #endif |
| OLD | NEW |