| 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 SkScalerContext_DEFINED | 8 #ifndef SkScalerContext_DEFINED |
| 9 #define SkScalerContext_DEFINED | 9 #define SkScalerContext_DEFINED |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 uint8_t fMaskFormat; | 75 uint8_t fMaskFormat; |
| 76 uint8_t fStrokeJoin; | 76 uint8_t fStrokeJoin; |
| 77 uint16_t fFlags; | 77 uint16_t fFlags; |
| 78 // Warning: when adding members note that the size of this structure | 78 // Warning: when adding members note that the size of this structure |
| 79 // must be a multiple of 4. SkDescriptor requires that its arguments be | 79 // must be a multiple of 4. SkDescriptor requires that its arguments be |
| 80 // multiples of four and this structure is put in an SkDescriptor in | 80 // multiples of four and this structure is put in an SkDescriptor in |
| 81 // SkPaint::MakeRec. | 81 // SkPaint::MakeRec. |
| 82 | 82 |
| 83 void getMatrixFrom2x2(SkMatrix*) const; | 83 void getMatrixFrom2x2(SkMatrix*) const; |
| 84 void getLocalMatrix(SkMatrix*) const; | 84 void getLocalMatrix(SkMatrix*) const; |
| 85 void getLocalMatrixWithoutTextSize(SkMatrix*) const; | |
| 86 void getSingleMatrix(SkMatrix*) const; | 85 void getSingleMatrix(SkMatrix*) const; |
| 87 void getSingleMatrixWithoutTextSize(SkMatrix*) const; | |
| 88 | 86 |
| 89 /** The kind of scale which will be applied by the underlying port (pre-matr
ix). */ | 87 /** The kind of scale which will be applied by the underlying port (pre-matr
ix). */ |
| 90 enum PreMatrixScale { | 88 enum PreMatrixScale { |
| 91 kFull_PreMatrixScale, // The underlying port can apply both x and y sca
le. | 89 kFull_PreMatrixScale, // The underlying port can apply both x and y sca
le. |
| 92 kVertical_PreMatrixScale, // The underlying port can only apply a y sca
le. | 90 kVertical_PreMatrixScale, // The underlying port can only apply a y sca
le. |
| 93 kVerticalInteger_PreMatrixScale // The underlying port can only apply a
n integer y scale. | 91 kVerticalInteger_PreMatrixScale // The underlying port can only apply a
n integer y scale. |
| 94 }; | 92 }; |
| 95 /** | 93 /** |
| 96 * Compute useful matrices for use with sizing in underlying libraries. | 94 * Compute useful matrices for use with sizing in underlying libraries. |
| 97 * | 95 * |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 return static_cast<SkPaint::Hinting>(hint); | 357 return static_cast<SkPaint::Hinting>(hint); |
| 360 } | 358 } |
| 361 | 359 |
| 362 void SkScalerContextRec::setHinting(SkPaint::Hinting hinting) { | 360 void SkScalerContextRec::setHinting(SkPaint::Hinting hinting) { |
| 363 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) | | 361 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) | |
| 364 (hinting << SkScalerContext::kHinting_Shift); | 362 (hinting << SkScalerContext::kHinting_Shift); |
| 365 } | 363 } |
| 366 | 364 |
| 367 | 365 |
| 368 #endif | 366 #endif |
| OLD | NEW |