5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_EXTERNAL_TEXTURE_METAL_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_EXTERNAL_TEXTURE_METAL_H_
8 #include "flutter/common/graphics/texture.h"
9 #include "flutter/fml/macros.h"
10 #include "flutter/fml/platform/darwin/scoped_nsobject.h"
11 #import "flutter/shell/platform/darwin/graphics/FlutterDarwinExternalTextureMetal.h"
18 const fml::scoped_nsobject<FlutterDarwinExternalTextureMetal>&
19 darwin_external_texture_metal);
25 fml::scoped_nsobject<FlutterDarwinExternalTextureMetal>
26 darwin_external_texture_metal_;
29 void Paint(PaintContext& context,
32 const DlImageSampling sampling)
override;
35 void OnGrContextCreated()
override;
38 void OnGrContextDestroyed()
override;
41 void MarkNewFrameAvailable()
override;
44 void OnTextureUnregistered()
override;
51 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_IOS_EXTERNAL_TEXTURE_METAL_H_