6 #include "flow/layers/layer.h"
13 const fml::scoped_nsobject<FlutterDarwinExternalTextureMetal>& darwin_external_texture_metal)
14 : Texture([darwin_external_texture_metal textureID]),
15 darwin_external_texture_metal_(darwin_external_texture_metal) {}
19 void IOSExternalTextureMetal::Paint(PaintContext& context,
22 const DlImageSampling sampling) {
23 [darwin_external_texture_metal_ paintContext:context
29 void IOSExternalTextureMetal::OnGrContextCreated() {
30 [darwin_external_texture_metal_ onGrContextCreated];
33 void IOSExternalTextureMetal::OnGrContextDestroyed() {
34 [darwin_external_texture_metal_ onGrContextDestroyed];
37 void IOSExternalTextureMetal::MarkNewFrameAvailable() {
38 [darwin_external_texture_metal_ markNewFrameAvailable];
41 void IOSExternalTextureMetal::OnTextureUnregistered() {
42 [darwin_external_texture_metal_ onTextureUnregistered];