| 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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 /** Set or clear the patheffect object. | 554 /** Set or clear the patheffect object. |
| 555 <p /> | 555 <p /> |
| 556 Pass NULL to clear any previous patheffect. | 556 Pass NULL to clear any previous patheffect. |
| 557 As a convenience, the parameter passed is also returned. | 557 As a convenience, the parameter passed is also returned. |
| 558 If a previous patheffect exists, its reference count is decremented. | 558 If a previous patheffect exists, its reference count is decremented. |
| 559 If patheffect is not NULL, its reference count is incremented. | 559 If patheffect is not NULL, its reference count is incremented. |
| 560 @param effect May be NULL. The new patheffect to be installed in the | 560 @param effect May be NULL. The new patheffect to be installed in the |
| 561 paint | 561 paint |
| 562 @return effect | 562 @return effect |
| 563 */ | 563 */ |
| 564 void setPathEffect(sk_sp<SkPathEffect>); |
| 565 #ifdef SK_SUPPORT_LEGACY_PATHEFFECT_PTR |
| 564 SkPathEffect* setPathEffect(SkPathEffect* effect); | 566 SkPathEffect* setPathEffect(SkPathEffect* effect); |
| 565 void setPathEffect(sk_sp<SkPathEffect>); | 567 #endif |
| 566 | 568 |
| 567 /** Get the paint's maskfilter object. | 569 /** Get the paint's maskfilter object. |
| 568 <p /> | 570 <p /> |
| 569 The maskfilter reference count is not affected. | 571 The maskfilter reference count is not affected. |
| 570 @return the paint's maskfilter (or NULL) | 572 @return the paint's maskfilter (or NULL) |
| 571 */ | 573 */ |
| 572 SkMaskFilter* getMaskFilter() const { return fMaskFilter.get(); } | 574 SkMaskFilter* getMaskFilter() const { return fMaskFilter.get(); } |
| 573 | 575 |
| 574 /** Set or clear the maskfilter object. | 576 /** Set or clear the maskfilter object. |
| 575 <p /> | 577 <p /> |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1146 friend class GrStencilAndCoverTextContext; | 1148 friend class GrStencilAndCoverTextContext; |
| 1147 friend class GrPathRendering; | 1149 friend class GrPathRendering; |
| 1148 friend class GrTextUtils; | 1150 friend class GrTextUtils; |
| 1149 friend class GrGLPathRendering; | 1151 friend class GrGLPathRendering; |
| 1150 friend class SkScalerContext; | 1152 friend class SkScalerContext; |
| 1151 friend class SkTextBaseIter; | 1153 friend class SkTextBaseIter; |
| 1152 friend class SkCanonicalizePaint; | 1154 friend class SkCanonicalizePaint; |
| 1153 }; | 1155 }; |
| 1154 | 1156 |
| 1155 #endif | 1157 #endif |
| OLD | NEW |