| 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 SkPaint_DEFINED | 8 #ifndef SkPaint_DEFINED |
| 9 #define SkPaint_DEFINED | 9 #define SkPaint_DEFINED |
| 10 | 10 |
| (...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 /** Set or clear the typeface object. | 607 /** Set or clear the typeface object. |
| 608 <p /> | 608 <p /> |
| 609 Pass NULL to clear any previous typeface. | 609 Pass NULL to clear any previous typeface. |
| 610 As a convenience, the parameter passed is also returned. | 610 As a convenience, the parameter passed is also returned. |
| 611 If a previous typeface exists, its reference count is decremented. | 611 If a previous typeface exists, its reference count is decremented. |
| 612 If typeface is not NULL, its reference count is incremented. | 612 If typeface is not NULL, its reference count is incremented. |
| 613 @param typeface May be NULL. The new typeface to be installed in the | 613 @param typeface May be NULL. The new typeface to be installed in the |
| 614 paint | 614 paint |
| 615 @return typeface | 615 @return typeface |
| 616 */ | 616 */ |
| 617 SkTypeface* setTypeface(SkTypeface* typeface); |
| 617 void setTypeface(sk_sp<SkTypeface>); | 618 void setTypeface(sk_sp<SkTypeface>); |
| 618 #ifdef SK_SUPPORT_LEGACY_TYPEFACE_PTR | |
| 619 SkTypeface* setTypeface(SkTypeface* typeface); | |
| 620 #endif | |
| 621 | 619 |
| 622 /** Get the paint's rasterizer (or NULL). | 620 /** Get the paint's rasterizer (or NULL). |
| 623 <p /> | 621 <p /> |
| 624 The raster controls how paths/text are turned into alpha masks. | 622 The raster controls how paths/text are turned into alpha masks. |
| 625 @return the paint's rasterizer (or NULL) | 623 @return the paint's rasterizer (or NULL) |
| 626 */ | 624 */ |
| 627 SkRasterizer* getRasterizer() const { return fRasterizer.get(); } | 625 SkRasterizer* getRasterizer() const { return fRasterizer.get(); } |
| 628 | 626 |
| 629 /** Set or clear the rasterizer object. | 627 /** Set or clear the rasterizer object. |
| 630 <p /> | 628 <p /> |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1170 friend class GrStencilAndCoverTextContext; | 1168 friend class GrStencilAndCoverTextContext; |
| 1171 friend class GrPathRendering; | 1169 friend class GrPathRendering; |
| 1172 friend class GrTextUtils; | 1170 friend class GrTextUtils; |
| 1173 friend class GrGLPathRendering; | 1171 friend class GrGLPathRendering; |
| 1174 friend class SkScalerContext; | 1172 friend class SkScalerContext; |
| 1175 friend class SkTextBaseIter; | 1173 friend class SkTextBaseIter; |
| 1176 friend class SkCanonicalizePaint; | 1174 friend class SkCanonicalizePaint; |
| 1177 }; | 1175 }; |
| 1178 | 1176 |
| 1179 #endif | 1177 #endif |
| OLD | NEW |