OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "SkPaint.h" | 9 #include "SkPaint.h" |
10 #include "SkAnnotation.h" | 10 #include "SkAnnotation.h" |
(...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1640 } | 1640 } |
1641 } | 1641 } |
1642 | 1642 |
1643 if (paint.isEmbeddedBitmapText()) { | 1643 if (paint.isEmbeddedBitmapText()) { |
1644 flags |= SkScalerContext::kEmbeddedBitmapText_Flag; | 1644 flags |= SkScalerContext::kEmbeddedBitmapText_Flag; |
1645 } | 1645 } |
1646 if (paint.isSubpixelText()) { | 1646 if (paint.isSubpixelText()) { |
1647 flags |= SkScalerContext::kSubpixelPositioning_Flag; | 1647 flags |= SkScalerContext::kSubpixelPositioning_Flag; |
1648 } | 1648 } |
1649 if (paint.isAutohinted()) { | 1649 if (paint.isAutohinted()) { |
1650 flags |= SkScalerContext::kAutohinting_Flag; | 1650 flags |= SkScalerContext::kForceAutohinting_Flag; |
1651 } | 1651 } |
1652 if (paint.isVerticalText()) { | 1652 if (paint.isVerticalText()) { |
1653 flags |= SkScalerContext::kVertical_Flag; | 1653 flags |= SkScalerContext::kVertical_Flag; |
1654 } | 1654 } |
1655 if (paint.getFlags() & SkPaint::kGenA8FromLCD_Flag) { | 1655 if (paint.getFlags() & SkPaint::kGenA8FromLCD_Flag) { |
1656 flags |= SkScalerContext::kGenA8FromLCD_Flag; | 1656 flags |= SkScalerContext::kGenA8FromLCD_Flag; |
1657 } | 1657 } |
1658 rec->fFlags = SkToU16(flags); | 1658 rec->fFlags = SkToU16(flags); |
1659 | 1659 |
1660 // these modify fFlags, so do them after assigning fFlags | 1660 // these modify fFlags, so do them after assigning fFlags |
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2577 case SkXfermode::kPlus_Mode: | 2577 case SkXfermode::kPlus_Mode: |
2578 return 0 == this->getAlpha(); | 2578 return 0 == this->getAlpha(); |
2579 case SkXfermode::kDst_Mode: | 2579 case SkXfermode::kDst_Mode: |
2580 return true; | 2580 return true; |
2581 default: | 2581 default: |
2582 break; | 2582 break; |
2583 } | 2583 } |
2584 } | 2584 } |
2585 return false; | 2585 return false; |
2586 } | 2586 } |
OLD | NEW |