Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
flutter::GpuSurfaceTexture Class Reference

#include <texture_registrar.h>

Public Types

typedef std::function< const FlutterDesktopGpuSurfaceDescriptor *(size_t width, size_t height)> ObtainDescriptorCallback
 

Public Member Functions

 GpuSurfaceTexture (FlutterDesktopGpuSurfaceType surface_type, ObtainDescriptorCallback obtain_descriptor_callback)
 
const FlutterDesktopGpuSurfaceDescriptorObtainDescriptor (size_t width, size_t height) const
 
FlutterDesktopGpuSurfaceType surface_type () const
 

Detailed Description

Definition at line 47 of file texture_registrar.h.

Member Typedef Documentation

◆ ObtainDescriptorCallback

Definition at line 52 of file texture_registrar.h.

Constructor & Destructor Documentation

◆ GpuSurfaceTexture()

flutter::GpuSurfaceTexture::GpuSurfaceTexture ( FlutterDesktopGpuSurfaceType  surface_type,
ObtainDescriptorCallback  obtain_descriptor_callback 
)
inline

Definition at line 54 of file texture_registrar.h.

56 : surface_type_(surface_type),
57 obtain_descriptor_callback_(std::move(obtain_descriptor_callback)) {}
FlutterDesktopGpuSurfaceType surface_type() const

Member Function Documentation

◆ ObtainDescriptor()

const FlutterDesktopGpuSurfaceDescriptor * flutter::GpuSurfaceTexture::ObtainDescriptor ( size_t  width,
size_t  height 
) const
inline

Definition at line 62 of file texture_registrar.h.

64 {
65 return obtain_descriptor_callback_(width, height);
66 }
int32_t height
int32_t width

◆ surface_type()

FlutterDesktopGpuSurfaceType flutter::GpuSurfaceTexture::surface_type ( ) const
inline

Definition at line 69 of file texture_registrar.h.

69{ return surface_type_; }

The documentation for this class was generated from the following file: