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 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1025 if (skewX) { | 1025 if (skewX) { |
1026 matrix->postSkew(skewX, 0); | 1026 matrix->postSkew(skewX, 0); |
1027 } | 1027 } |
1028 return matrix; | 1028 return matrix; |
1029 } | 1029 } |
1030 | 1030 |
1031 SkMatrix* setTextMatrix(SkMatrix* matrix) const { | 1031 SkMatrix* setTextMatrix(SkMatrix* matrix) const { |
1032 return SetTextMatrix(matrix, fTextSize, fTextScaleX, fTextSkewX); | 1032 return SetTextMatrix(matrix, fTextSize, fTextScaleX, fTextSkewX); |
1033 } | 1033 } |
1034 | 1034 |
1035 SkDEVCODE(void toString(SkString*) const;) | 1035 SK_TO_STRING_NONVIRT() |
1036 | 1036 |
1037 struct FlatteningTraits { | 1037 struct FlatteningTraits { |
1038 static void Flatten(SkWriteBuffer& buffer, const SkPaint& paint); | 1038 static void Flatten(SkWriteBuffer& buffer, const SkPaint& paint); |
1039 static void Unflatten(SkReadBuffer& buffer, SkPaint* paint); | 1039 static void Unflatten(SkReadBuffer& buffer, SkPaint* paint); |
1040 }; | 1040 }; |
1041 | 1041 |
1042 private: | 1042 private: |
1043 SkTypeface* fTypeface; | 1043 SkTypeface* fTypeface; |
1044 SkScalar fTextSize; | 1044 SkScalar fTextSize; |
1045 SkScalar fTextScaleX; | 1045 SkScalar fTextScaleX; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1147 #ifdef SK_BUILD_FOR_ANDROID | 1147 #ifdef SK_BUILD_FOR_ANDROID |
1148 SkPaintOptionsAndroid fPaintOptionsAndroid; | 1148 SkPaintOptionsAndroid fPaintOptionsAndroid; |
1149 | 1149 |
1150 // In order for the == operator to work properly this must be the last field | 1150 // In order for the == operator to work properly this must be the last field |
1151 // in the struct so that we can do a memcmp to this field's offset. | 1151 // in the struct so that we can do a memcmp to this field's offset. |
1152 uint32_t fGenerationID; | 1152 uint32_t fGenerationID; |
1153 #endif | 1153 #endif |
1154 }; | 1154 }; |
1155 | 1155 |
1156 #endif | 1156 #endif |
OLD | NEW |