Definition at line 88 of file FlutterMetalLayer.mm.
◆ addPresentedHandler:
- (void) addPresentedHandler: |
|
(nonnull MTLDrawablePresentedHandler) |
block |
|
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
144 :(nonnull MTLDrawablePresentedHandler)block {
145 FML_LOG(WARNING) <<
"FlutterMetalLayer drawable does not implement addPresentedHandler:";
146}
#define FML_LOG(severity)
◆ dealloc
Definition at line 92 of file FlutterMetalLayer.mm.
138 {
140 [_layer returnTexture:self->_texture];
141 }
142}
◆ drawableID
- (NSUInteger) drawableID |
|
|
|
|
implementation |
◆ flutterPrepareForPresent:
- (void) flutterPrepareForPresent: |
|
(nonnull id<MTLCommandBuffer>) |
commandBuffer |
|
|
implementation |
Reimplemented from <FlutterMetalDrawable>.
Definition at line 92 of file FlutterMetalLayer.mm.
156 :(nonnull id<MTLCommandBuffer>)commandBuffer {
158 texture.waitingForCompletion = YES;
159 [commandBuffer addCompletedHandler:^(id<MTLCommandBuffer> buffer) {
160 texture.waitingForCompletion = NO;
161 }];
162}
FlutterTexture * _texture
id< MTLTexture > texture()
◆ initWithTexture:layer:drawableId:
Definition at line 92 of file FlutterMetalLayer.mm.
105 drawableId:(NSUInteger)drawableId {
106 if (
self = [super
init]) {
110 }
111 return self;
112}
__weak FlutterMetalLayer * _layer
◆ layer
◆ present
Definition at line 92 of file FlutterMetalLayer.mm.
133 {
134 [_layer presentTexture:self->_texture];
135 self->_presented = YES;
136}
◆ presentAfterMinimumDuration:
- (void) presentAfterMinimumDuration: |
|
(CFTimeInterval) |
duration |
|
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
153 FML_LOG(WARNING) <<
"FlutterMetalLayer drawable does not implement presentAfterMinimumDuration:";
154}
◆ presentAtTime:
- (void) presentAtTime: |
|
(CFTimeInterval) |
presentationTime |
|
|
implementation |
Definition at line 92 of file FlutterMetalLayer.mm.
148 :(CFTimeInterval)presentationTime {
149 FML_LOG(WARNING) <<
"FlutterMetalLayer drawable does not implement presentAtTime:";
150}
◆ presentedTime
- (CFTimeInterval) presentedTime |
|
|
|
|
implementation |
◆ texture
- (id< MTLTexture >) texture |
|
|
|
|
implementation |
◆ _drawableId
- (NSUInteger) _drawableId |
|
protected |
◆ _layer
◆ _presented
◆ _texture
The documentation for this class was generated from the following file: