Flutter Linux Embedder
flutter::PixelBufferTexture Class Reference

#include <texture_registrar.h>

Public Types

typedef std::function< const FlutterDesktopPixelBuffer *(size_t width, size_t height)> CopyBufferCallback
 

Public Member Functions

 PixelBufferTexture (CopyBufferCallback copy_buffer_callback)
 
const FlutterDesktopPixelBufferCopyPixelBuffer (size_t width, size_t height) const
 

Detailed Description

Definition at line 19 of file texture_registrar.h.

Member Typedef Documentation

◆ CopyBufferCallback

Definition at line 24 of file texture_registrar.h.

Constructor & Destructor Documentation

◆ PixelBufferTexture()

flutter::PixelBufferTexture::PixelBufferTexture ( CopyBufferCallback  copy_buffer_callback)
inlineexplicit

Definition at line 31 of file texture_registrar.h.

32  : copy_buffer_callback_(std::move(copy_buffer_callback)) {}

Member Function Documentation

◆ CopyPixelBuffer()

const FlutterDesktopPixelBuffer* flutter::PixelBufferTexture::CopyPixelBuffer ( size_t  width,
size_t  height 
) const
inline

Definition at line 37 of file texture_registrar.h.

38  {
39  return copy_buffer_callback_(width, height);
40  }

References height, and width.

Referenced by flutter::TextureRegistrarImpl::RegisterTexture().


The documentation for this class was generated from the following file:
height
const uint8_t uint32_t uint32_t * height
Definition: fl_pixel_buffer_texture_test.cc:39
width
const uint8_t uint32_t * width
Definition: fl_pixel_buffer_texture_test.cc:38