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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
72 * paint and device gamma to be effectively 1.0. | 72 * paint and device gamma to be effectively 1.0. |
73 */ | 73 */ |
74 void ignorePreBlend() { | 74 void ignorePreBlend() { |
75 setLuminanceColor(SK_ColorTRANSPARENT); | 75 setLuminanceColor(SK_ColorTRANSPARENT); |
76 setPaintGamma(SK_Scalar1); | 76 setPaintGamma(SK_Scalar1); |
77 setDeviceGamma(SK_Scalar1); | 77 setDeviceGamma(SK_Scalar1); |
78 setContrast(0); | 78 setContrast(0); |
79 } | 79 } |
80 | 80 |
81 uint8_t fMaskFormat; | 81 uint8_t fMaskFormat; |
82 uint8_t fStrokeJoin; | 82 uint8_t fStrokeJoin : 4; |
83 uint8_t fStrokeCap : 4; | |
bungeman-skia
2016/03/09 15:32:57
This is a cool way to get these bits in, though it
| |
83 uint16_t fFlags; | 84 uint16_t fFlags; |
84 // Warning: when adding members note that the size of this structure | 85 // Warning: when adding members note that the size of this structure |
85 // must be a multiple of 4. SkDescriptor requires that its arguments be | 86 // must be a multiple of 4. SkDescriptor requires that its arguments be |
86 // multiples of four and this structure is put in an SkDescriptor in | 87 // multiples of four and this structure is put in an SkDescriptor in |
87 // SkPaint::MakeRec. | 88 // SkPaint::MakeRec. |
88 | 89 |
89 void getMatrixFrom2x2(SkMatrix*) const; | 90 void getMatrixFrom2x2(SkMatrix*) const; |
90 void getLocalMatrix(SkMatrix*) const; | 91 void getLocalMatrix(SkMatrix*) const; |
91 void getSingleMatrix(SkMatrix*) const; | 92 void getSingleMatrix(SkMatrix*) const; |
92 | 93 |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
359 return static_cast<SkPaint::Hinting>(hint); | 360 return static_cast<SkPaint::Hinting>(hint); |
360 } | 361 } |
361 | 362 |
362 void SkScalerContextRec::setHinting(SkPaint::Hinting hinting) { | 363 void SkScalerContextRec::setHinting(SkPaint::Hinting hinting) { |
363 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) | | 364 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) | |
364 (hinting << SkScalerContext::kHinting_Shift); | 365 (hinting << SkScalerContext::kHinting_Shift); |
365 } | 366 } |
366 | 367 |
367 | 368 |
368 #endif | 369 #endif |
OLD | NEW |