| 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 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1648 rec->setContrast(SkFloatToScalar(0.5f)); | 1648 rec->setContrast(SkFloatToScalar(0.5f)); |
| 1649 #endif | 1649 #endif |
| 1650 | 1650 |
| 1651 rec->fReservedAlign = 0; | 1651 rec->fReservedAlign = 0; |
| 1652 | 1652 |
| 1653 /* Allow the fonthost to modify our rec before we use it as a key into the | 1653 /* Allow the fonthost to modify our rec before we use it as a key into the |
| 1654 cache. This way if we're asking for something that they will ignore, | 1654 cache. This way if we're asking for something that they will ignore, |
| 1655 they can modify our rec up front, so we don't create duplicate cache | 1655 they can modify our rec up front, so we don't create duplicate cache |
| 1656 entries. | 1656 entries. |
| 1657 */ | 1657 */ |
| 1658 SkFontHost::FilterRec(rec, typeface); | 1658 typeface->onFilterRec(rec); |
| 1659 | 1659 |
| 1660 // be sure to call PostMakeRec(rec) before you actually use it! | 1660 // be sure to call PostMakeRec(rec) before you actually use it! |
| 1661 } | 1661 } |
| 1662 | 1662 |
| 1663 /** | 1663 /** |
| 1664 * In order to call cachedDeviceLuminance, cachedPaintLuminance, or | 1664 * In order to call cachedDeviceLuminance, cachedPaintLuminance, or |
| 1665 * cachedMaskGamma the caller must hold the gMaskGammaCacheMutex and continue | 1665 * cachedMaskGamma the caller must hold the gMaskGammaCacheMutex and continue |
| 1666 * to hold it until the returned pointer is refed or forgotten. | 1666 * to hold it until the returned pointer is refed or forgotten. |
| 1667 */ | 1667 */ |
| 1668 SK_DECLARE_STATIC_MUTEX(gMaskGammaCacheMutex); | 1668 SK_DECLARE_STATIC_MUTEX(gMaskGammaCacheMutex); |
| (...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2564 if (firstTime) { | 2564 if (firstTime) { |
| 2565 *dst = r; | 2565 *dst = r; |
| 2566 } else { | 2566 } else { |
| 2567 dst->join(r); | 2567 dst->join(r); |
| 2568 } | 2568 } |
| 2569 } else { | 2569 } else { |
| 2570 break; | 2570 break; |
| 2571 } | 2571 } |
| 2572 } | 2572 } |
| 2573 } | 2573 } |
| OLD | NEW |