| 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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 void getTextPath(const void* text, size_t length, SkScalar x, SkScalar y, | 935 void getTextPath(const void* text, size_t length, SkScalar x, SkScalar y, |
| 936 SkPath* path) const; | 936 SkPath* path) const; |
| 937 | 937 |
| 938 void getPosTextPath(const void* text, size_t length, | 938 void getPosTextPath(const void* text, size_t length, |
| 939 const SkPoint pos[], SkPath* path) const; | 939 const SkPoint pos[], SkPath* path) const; |
| 940 | 940 |
| 941 #ifdef SK_BUILD_FOR_ANDROID | 941 #ifdef SK_BUILD_FOR_ANDROID |
| 942 uint32_t getGenerationID() const; | 942 uint32_t getGenerationID() const; |
| 943 void setGenerationID(uint32_t generationID); | 943 void setGenerationID(uint32_t generationID); |
| 944 | 944 |
| 945 /** Returns the base glyph count for the strike associated with this paint | |
| 946 */ | |
| 947 unsigned getBaseGlyphCount(SkUnichar text) const; | |
| 948 | |
| 949 const SkPaintOptionsAndroid& getPaintOptionsAndroid() const { | 945 const SkPaintOptionsAndroid& getPaintOptionsAndroid() const { |
| 950 return fPaintOptionsAndroid; | 946 return fPaintOptionsAndroid; |
| 951 } | 947 } |
| 952 void setPaintOptionsAndroid(const SkPaintOptionsAndroid& options); | 948 void setPaintOptionsAndroid(const SkPaintOptionsAndroid& options); |
| 953 #endif | 949 #endif |
| 954 | 950 |
| 955 // returns true if the paint's settings (e.g. xfermode + alpha) resolve to | 951 // returns true if the paint's settings (e.g. xfermode + alpha) resolve to |
| 956 // mean that we need not draw at all (e.g. SrcOver + 0-alpha) | 952 // mean that we need not draw at all (e.g. SrcOver + 0-alpha) |
| 957 bool nothingToDraw() const; | 953 bool nothingToDraw() const; |
| 958 | 954 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1144 #ifdef SK_BUILD_FOR_ANDROID | 1140 #ifdef SK_BUILD_FOR_ANDROID |
| 1145 SkPaintOptionsAndroid fPaintOptionsAndroid; | 1141 SkPaintOptionsAndroid fPaintOptionsAndroid; |
| 1146 | 1142 |
| 1147 // In order for the == operator to work properly this must be the last field | 1143 // In order for the == operator to work properly this must be the last field |
| 1148 // in the struct so that we can do a memcmp to this field's offset. | 1144 // in the struct so that we can do a memcmp to this field's offset. |
| 1149 uint32_t fGenerationID; | 1145 uint32_t fGenerationID; |
| 1150 #endif | 1146 #endif |
| 1151 }; | 1147 }; |
| 1152 | 1148 |
| 1153 #endif | 1149 #endif |
| OLD | NEW |