| Flutter Windows Embedder |

Public Types | Public Member Functions | List of all members
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 FlutterDesktopPixelBuffer * | CopyPixelBuffer (size_t width, size_t height) const

## Detailed Description

Definition at line 19 of file texture_registrar.h.

## Member Typedef Documentation

## ◆ CopyBufferCallback

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

Definition at line 24 of file texture_registrar.h.

## Constructor & Destructor Documentation

## ◆ PixelBufferTexture()

flutter::PixelBufferTexture::PixelBufferTexture | ( | CopyBufferCallback | copy_buffer_callback | ) |
| inline explicit

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 }

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

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

- shell/platform/common/client_wrapper/include/flutter/texture_registrar.h