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; |
85 void getSingleMatrix(SkMatrix*) const; | 86 void getSingleMatrix(SkMatrix*) const; |
| 87 void getSingleMatrixWithoutTextSize(SkMatrix*) const; |
86 | 88 |
87 inline SkPaint::Hinting getHinting() const; | 89 inline SkPaint::Hinting getHinting() const; |
88 inline void setHinting(SkPaint::Hinting); | 90 inline void setHinting(SkPaint::Hinting); |
89 | 91 |
90 SkMask::Format getFormat() const { | 92 SkMask::Format getFormat() const { |
91 return static_cast<SkMask::Format>(fMaskFormat); | 93 return static_cast<SkMask::Format>(fMaskFormat); |
92 } | 94 } |
93 | 95 |
94 SkColor getLuminanceColor() const { | 96 SkColor getLuminanceColor() const { |
95 return fLumBits; | 97 return fLumBits; |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 return static_cast<SkPaint::Hinting>(hint); | 315 return static_cast<SkPaint::Hinting>(hint); |
314 } | 316 } |
315 | 317 |
316 void SkScalerContextRec::setHinting(SkPaint::Hinting hinting) { | 318 void SkScalerContextRec::setHinting(SkPaint::Hinting hinting) { |
317 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) | | 319 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) | |
318 (hinting << SkScalerContext::kHinting_Shift); | 320 (hinting << SkScalerContext::kHinting_Shift); |
319 } | 321 } |
320 | 322 |
321 | 323 |
322 #endif | 324 #endif |
OLD | NEW |