#include <FlutterDarwinExternalTextureMetal.h>
◆ initWithTextureCache:textureID:texture:enableImpeller:
| - (nullable instancetype) initWithTextureCache: |
|
(nonnull CVMetalTextureCacheRef) |
textureCache |
| textureID: |
|
(int64_t) |
textureID |
| texture: |
|
(nonnull NSObject< FlutterTexture > *) |
texture |
| enableImpeller: |
|
(BOOL) |
enableImpeller |
|
|
| |
◆ markNewFrameAvailable
| - (void) markNewFrameAvailable |
|
|
|
◆ onGrContextCreated
| - (void) onGrContextCreated |
|
|
|
◆ onGrContextDestroyed
| - (void) onGrContextDestroyed |
|
|
|
Definition at line 35 of file FlutterDarwinExternalTextureMetal.mm.
104 {
105
106
107
108
110 if (_textureCache) {
111 CVMetalTextureCacheFlush(_textureCache, 0);
112 }
113}
sk_sp< flutter::DlImage > _externalImage
◆ onTextureUnregistered
| - (void) onTextureUnregistered |
|
|
|
Definition at line 35 of file FlutterDarwinExternalTextureMetal.mm.
119 {
121 [_externalTexture onTextureUnregistered:_externalTexture];
122 }
123}
NSObject< FlutterTexture > * _externalTexture
void onTextureUnregistered()
◆ paintContext:bounds:freeze:sampling:
Definition at line 35 of file FlutterDarwinExternalTextureMetal.mm.
60 bounds:(const SkRect&)bounds
64
65 if (needsUpdatedTexture) {
66 [self onNeedsUpdatedTexture:context];
67 }
68
74 sampling,
77 );
78 }
79}
virtual void DrawImageRect(const sk_sp< DlImage > &image, const DlRect &src, const DlRect &dst, DlImageSampling sampling, const DlPaint *paint=nullptr, DlSrcRectConstraint constraint=DlSrcRectConstraint::kFast)=0
const DlRect & ToDlRect(const SkRect &rect)
static constexpr std::enable_if_t< std::is_floating_point_v< FT >, TRect > Make(const TRect< U > &rect)
◆ textureID
The documentation for this class was generated from the following files: