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 |
11 #include "SkMask.h" | 11 #include "SkMask.h" |
12 #include "SkMaskGamma.h" | 12 #include "SkMaskGamma.h" |
13 #include "SkMatrix.h" | 13 #include "SkMatrix.h" |
14 #include "SkPaint.h" | 14 #include "SkPaint.h" |
15 #include "SkTypeface.h" | 15 #include "SkTypeface.h" |
16 | 16 |
17 class SkGlyph; | 17 struct SkGlyph; |
18 class SkDescriptor; | 18 class SkDescriptor; |
19 class SkMaskFilter; | 19 class SkMaskFilter; |
20 class SkPathEffect; | 20 class SkPathEffect; |
21 class SkRasterizer; | 21 class SkRasterizer; |
22 | 22 |
23 /* | 23 /* |
24 * To allow this to be forward-declared, it must be its own typename, rather | 24 * To allow this to be forward-declared, it must be its own typename, rather |
25 * than a nested struct inside SkScalerContext (where it started). | 25 * than a nested struct inside SkScalerContext (where it started). |
26 */ | 26 */ |
27 struct SkScalerContextRec { | 27 struct SkScalerContextRec { |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 return static_cast<SkPaint::Hinting>(hint); | 359 return static_cast<SkPaint::Hinting>(hint); |
360 } | 360 } |
361 | 361 |
362 void SkScalerContextRec::setHinting(SkPaint::Hinting hinting) { | 362 void SkScalerContextRec::setHinting(SkPaint::Hinting hinting) { |
363 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) | | 363 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) | |
364 (hinting << SkScalerContext::kHinting_Shift); | 364 (hinting << SkScalerContext::kHinting_Shift); |
365 } | 365 } |
366 | 366 |
367 | 367 |
368 #endif | 368 #endif |
OLD | NEW |