| 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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 */ | 508 */ |
| 509 SkColorFilter* getColorFilter() const { return fColorFilter.get(); } | 509 SkColorFilter* getColorFilter() const { return fColorFilter.get(); } |
| 510 | 510 |
| 511 /** Set or clear the paint's colorfilter, returning the parameter. | 511 /** Set or clear the paint's colorfilter, returning the parameter. |
| 512 <p /> | 512 <p /> |
| 513 If the paint already has a filter, its reference count is decremented. | 513 If the paint already has a filter, its reference count is decremented. |
| 514 If filter is not NULL, its reference count is incremented. | 514 If filter is not NULL, its reference count is incremented. |
| 515 @param filter May be NULL. The filter to be installed in the paint | 515 @param filter May be NULL. The filter to be installed in the paint |
| 516 @return filter | 516 @return filter |
| 517 */ | 517 */ |
| 518 #ifdef SK_SUPPORT_LEGACY_COLORFILTER_PTR |
| 518 SkColorFilter* setColorFilter(SkColorFilter* filter); | 519 SkColorFilter* setColorFilter(SkColorFilter* filter); |
| 520 #endif |
| 519 void setColorFilter(sk_sp<SkColorFilter>); | 521 void setColorFilter(sk_sp<SkColorFilter>); |
| 520 | 522 |
| 521 /** Get the paint's xfermode object. | 523 /** Get the paint's xfermode object. |
| 522 <p /> | 524 <p /> |
| 523 The xfermode's reference count is not affected. | 525 The xfermode's reference count is not affected. |
| 524 @return the paint's xfermode (or NULL) | 526 @return the paint's xfermode (or NULL) |
| 525 */ | 527 */ |
| 526 SkXfermode* getXfermode() const { return fXfermode.get(); } | 528 SkXfermode* getXfermode() const { return fXfermode.get(); } |
| 527 | 529 |
| 528 /** Set or clear the xfermode object. | 530 /** Set or clear the xfermode object. |
| (...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1152 friend class GrStencilAndCoverTextContext; | 1154 friend class GrStencilAndCoverTextContext; |
| 1153 friend class GrPathRendering; | 1155 friend class GrPathRendering; |
| 1154 friend class GrTextUtils; | 1156 friend class GrTextUtils; |
| 1155 friend class GrGLPathRendering; | 1157 friend class GrGLPathRendering; |
| 1156 friend class SkScalerContext; | 1158 friend class SkScalerContext; |
| 1157 friend class SkTextBaseIter; | 1159 friend class SkTextBaseIter; |
| 1158 friend class SkCanonicalizePaint; | 1160 friend class SkCanonicalizePaint; |
| 1159 }; | 1161 }; |
| 1160 | 1162 |
| 1161 #endif | 1163 #endif |
| OLD | NEW |