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 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 Note: just like SkCanvas::drawText, this will respect the Align setting | 873 Note: just like SkCanvas::drawText, this will respect the Align setting |
874 in the paint. | 874 in the paint. |
875 */ | 875 */ |
876 void getTextPath(const void* text, size_t length, SkScalar x, SkScalar y, | 876 void getTextPath(const void* text, size_t length, SkScalar x, SkScalar y, |
877 SkPath* path) const; | 877 SkPath* path) const; |
878 | 878 |
879 void getPosTextPath(const void* text, size_t length, | 879 void getPosTextPath(const void* text, size_t length, |
880 const SkPoint pos[], SkPath* path) const; | 880 const SkPoint pos[], SkPath* path) const; |
881 | 881 |
882 #ifdef SK_BUILD_FOR_ANDROID | 882 #ifdef SK_BUILD_FOR_ANDROID |
883 const SkGlyph& getUnicharMetrics(SkUnichar, const SkMatrix*); | |
884 const SkGlyph& getGlyphMetrics(uint16_t, const SkMatrix*); | |
885 const void* findImage(const SkGlyph&, const SkMatrix*); | |
886 | |
887 uint32_t getGenerationID() const; | 883 uint32_t getGenerationID() const; |
888 void setGenerationID(uint32_t generationID); | 884 void setGenerationID(uint32_t generationID); |
889 | 885 |
890 /** Returns the base glyph count for the strike associated with this paint | 886 /** Returns the base glyph count for the strike associated with this paint |
891 */ | 887 */ |
892 unsigned getBaseGlyphCount(SkUnichar text) const; | 888 unsigned getBaseGlyphCount(SkUnichar text) const; |
893 | 889 |
894 const SkPaintOptionsAndroid& getPaintOptionsAndroid() const { | 890 const SkPaintOptionsAndroid& getPaintOptionsAndroid() const { |
895 return fPaintOptionsAndroid; | 891 return fPaintOptionsAndroid; |
896 } | 892 } |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 #ifdef SK_BUILD_FOR_ANDROID | 1090 #ifdef SK_BUILD_FOR_ANDROID |
1095 SkPaintOptionsAndroid fPaintOptionsAndroid; | 1091 SkPaintOptionsAndroid fPaintOptionsAndroid; |
1096 | 1092 |
1097 // In order for the == operator to work properly this must be the last field | 1093 // In order for the == operator to work properly this must be the last field |
1098 // in the struct so that we can do a memcmp to this field's offset. | 1094 // in the struct so that we can do a memcmp to this field's offset. |
1099 uint32_t fGenerationID; | 1095 uint32_t fGenerationID; |
1100 #endif | 1096 #endif |
1101 }; | 1097 }; |
1102 | 1098 |
1103 #endif | 1099 #endif |
OLD | NEW |