| 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 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 */ | 625 */ |
| 626 SkRasterizer* setRasterizer(SkRasterizer* rasterizer); | 626 SkRasterizer* setRasterizer(SkRasterizer* rasterizer); |
| 627 | 627 |
| 628 SkImageFilter* getImageFilter() const { return fImageFilter; } | 628 SkImageFilter* getImageFilter() const { return fImageFilter; } |
| 629 SkImageFilter* setImageFilter(SkImageFilter*); | 629 SkImageFilter* setImageFilter(SkImageFilter*); |
| 630 | 630 |
| 631 SkAnnotation* getAnnotation() const { return fAnnotation; } | 631 SkAnnotation* getAnnotation() const { return fAnnotation; } |
| 632 SkAnnotation* setAnnotation(SkAnnotation*); | 632 SkAnnotation* setAnnotation(SkAnnotation*); |
| 633 | 633 |
| 634 /** | 634 /** |
| 635 * Returns true if there is an annotation installed on this paint, and | |
| 636 * the annotation specifics no-drawing. | |
| 637 */ | |
| 638 SK_ATTR_DEPRECATED("use getAnnotation and check for non-null") | |
| 639 bool isNoDrawAnnotation() const { return this->getAnnotation() != NULL; } | |
| 640 | |
| 641 /** | |
| 642 * Return the paint's SkDrawLooper (if any). Does not affect the looper's | 635 * Return the paint's SkDrawLooper (if any). Does not affect the looper's |
| 643 * reference count. | 636 * reference count. |
| 644 */ | 637 */ |
| 645 SkDrawLooper* getLooper() const { return fLooper; } | 638 SkDrawLooper* getLooper() const { return fLooper; } |
| 646 | 639 |
| 647 /** | 640 /** |
| 648 * Set or clear the looper object. | 641 * Set or clear the looper object. |
| 649 * <p /> | 642 * <p /> |
| 650 * Pass NULL to clear any previous looper. | 643 * Pass NULL to clear any previous looper. |
| 651 * As a convenience, the parameter passed is also returned. | 644 * As a convenience, the parameter passed is also returned. |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1094 friend class GrStencilAndCoverTextContext; | 1087 friend class GrStencilAndCoverTextContext; |
| 1095 friend class GrPathRendering; | 1088 friend class GrPathRendering; |
| 1096 friend class GrTextUtils; | 1089 friend class GrTextUtils; |
| 1097 friend class GrGLPathRendering; | 1090 friend class GrGLPathRendering; |
| 1098 friend class SkScalerContext; | 1091 friend class SkScalerContext; |
| 1099 friend class SkTextToPathIter; | 1092 friend class SkTextToPathIter; |
| 1100 friend class SkCanonicalizePaint; | 1093 friend class SkCanonicalizePaint; |
| 1101 }; | 1094 }; |
| 1102 | 1095 |
| 1103 #endif | 1096 #endif |
| OLD | NEW |