virtual void UnregisterTexture(int64_t texture_id, std::function< void()> callback)=0
FlutterDesktopGpuSurfaceType surface_type() const
std::function< const FlutterDesktopGpuSurfaceDescriptor *(size_t width, size_t height)> ObtainDescriptorCallback
virtual bool MarkTextureFrameAvailable(int64_t texture_id)=0
FlutterDesktopGpuSurfaceType
const FlutterDesktopPixelBuffer * CopyPixelBuffer(size_t width, size_t height) const
virtual ~TextureRegistrar()=default
std::function< const FlutterDesktopPixelBuffer *(size_t width, size_t height)> CopyBufferCallback
const FlutterDesktopGpuSurfaceDescriptor * ObtainDescriptor(size_t width, size_t height) const
PixelBufferTexture(CopyBufferCallback copy_buffer_callback)
virtual int64_t RegisterTexture(TextureVariant *texture)=0
GpuSurfaceTexture(FlutterDesktopGpuSurfaceType surface_type, ObtainDescriptorCallback obtain_descriptor_callback)