|
9 | 9 | // |
10 | 10 |
|
11 | 11 | #import <UIKit/UIKit.h> |
| 12 | +#import <AsyncDisplayKit/ASBaseDefines.h> |
12 | 13 |
|
13 | 14 | @class ASDisplayNode; |
14 | 15 | @protocol _ASDisplayLayerDelegate; |
@@ -103,27 +104,27 @@ typedef BOOL(^asdisplaynode_iscancelled_block_t)(void); |
103 | 104 | @param isCancelledBlock Execute this block to check whether the current drawing operation has been cancelled to avoid unnecessary work. A return value of YES means cancel drawing and return. |
104 | 105 | @param isRasterizing YES if the layer is being rasterized into another layer, in which case drawRect: probably wants to avoid doing things like filling its bounds with a zero-alpha color to clear the backing store. |
105 | 106 | */ |
106 | | -+ (void)drawRect:(CGRect)bounds withParameters:(id<NSObject>)parameters isCancelled:(__attribute((noescape)) asdisplaynode_iscancelled_block_t)isCancelledBlock isRasterizing:(BOOL)isRasterizing; |
| 107 | ++ (void)drawRect:(CGRect)bounds withParameters:(id<NSObject>)parameters isCancelled:(AS_NOESCAPE asdisplaynode_iscancelled_block_t)isCancelledBlock isRasterizing:(BOOL)isRasterizing; |
107 | 108 |
|
108 | 109 | /** |
109 | 110 | @summary Delegate override to provide new layer contents as a UIImage. |
110 | 111 | @param parameters An object describing all of the properties you need to draw. Return this from -drawParametersForAsyncLayer: |
111 | 112 | @param isCancelledBlock Execute this block to check whether the current drawing operation has been cancelled to avoid unnecessary work. A return value of YES means cancel drawing and return. |
112 | 113 | @return A UIImage with contents that are ready to display on the main thread. Make sure that the image is already decoded before returning it here. |
113 | 114 | */ |
114 | | -+ (UIImage *)displayWithParameters:(id<NSObject>)parameters isCancelled:(__attribute((noescape)) asdisplaynode_iscancelled_block_t)isCancelledBlock; |
| 115 | ++ (UIImage *)displayWithParameters:(id<NSObject>)parameters isCancelled:(AS_NOESCAPE asdisplaynode_iscancelled_block_t)isCancelledBlock; |
115 | 116 |
|
116 | 117 | /** |
117 | 118 | * @abstract instance version of drawRect class method |
118 | 119 | * @see drawRect:withParameters:isCancelled:isRasterizing class method |
119 | 120 | */ |
120 | | -- (void)drawRect:(CGRect)bounds withParameters:(id <NSObject>)parameters isCancelled:(__attribute((noescape)) asdisplaynode_iscancelled_block_t)isCancelledBlock isRasterizing:(BOOL)isRasterizing; |
| 121 | +- (void)drawRect:(CGRect)bounds withParameters:(id <NSObject>)parameters isCancelled:(AS_NOESCAPE asdisplaynode_iscancelled_block_t)isCancelledBlock isRasterizing:(BOOL)isRasterizing; |
121 | 122 |
|
122 | 123 | /** |
123 | 124 | * @abstract instance version of display class method |
124 | 125 | * @see displayWithParameters:isCancelled class method |
125 | 126 | */ |
126 | | -- (UIImage *)displayWithParameters:(id <NSObject>)parameters isCancelled:(__attribute((noescape)) asdisplaynode_iscancelled_block_t)isCancelled; |
| 127 | +- (UIImage *)displayWithParameters:(id <NSObject>)parameters isCancelled:(AS_NOESCAPE asdisplaynode_iscancelled_block_t)isCancelled; |
127 | 128 |
|
128 | 129 | // Called on the main thread only |
129 | 130 |
|
|
0 commit comments