#include <texture_registrar_impl.h>
Definition at line 14 of file texture_registrar_impl.h.
◆ TextureRegistrarImpl() [1/2]
◆ ~TextureRegistrarImpl()
| flutter::TextureRegistrarImpl::~TextureRegistrarImpl |
( |
| ) |
|
|
virtualdefault |
◆ TextureRegistrarImpl() [2/2]
◆ MarkTextureFrameAvailable()
| bool flutter::TextureRegistrarImpl::MarkTextureFrameAvailable |
( |
int64_t |
texture_id | ) |
|
|
overridevirtual |
◆ operator=()
◆ RegisterTexture()
| int64_t flutter::TextureRegistrarImpl::RegisterTexture |
( |
TextureVariant * |
texture | ) |
|
|
overridevirtual |
Implements flutter::TextureRegistrar.
Definition at line 217 of file core_implementations.cc.
217 {
219 if (
auto pixel_buffer_texture = std::get_if<PixelBufferTexture>(
texture)) {
227 };
228 } else if (auto gpu_surface_texture =
229 std::get_if<GpuSurfaceTexture>(
texture)) {
240 };
241 } else {
242 std::cerr << "Attempting to register unknown texture variant." << std::endl;
243 return -1;
244 }
245
247 texture_registrar_ref_, &info);
249}
@ kFlutterDesktopGpuSurfaceTexture
@ kFlutterDesktopPixelBufferTexture
FlutterDesktopGpuSurfaceTextureCallback callback
FlutterDesktopGpuSurfaceType type
FlutterDesktopPixelBufferTextureCallback callback
FlutterDesktopGpuSurfaceTextureConfig gpu_surface_config
FlutterDesktopTextureType type
FlutterDesktopPixelBufferTextureConfig pixel_buffer_config
int64_t FlutterDesktopTextureRegistrarRegisterExternalTexture(FlutterDesktopTextureRegistrarRef texture_registrar, const FlutterDesktopTextureInfo *info)
References FlutterDesktopPixelBufferTextureConfig::callback, FlutterDesktopGpuSurfaceTextureConfig::callback, flutter::PixelBufferTexture::CopyPixelBuffer(), FlutterDesktopTextureRegistrarRegisterExternalTexture(), FlutterDesktopTextureInfo::gpu_surface_config, height, kFlutterDesktopGpuSurfaceTexture, kFlutterDesktopPixelBufferTexture, flutter::GpuSurfaceTexture::ObtainDescriptor(), FlutterDesktopTextureInfo::pixel_buffer_config, FlutterDesktopGpuSurfaceTextureConfig::struct_size, texture, texture_id, FlutterDesktopGpuSurfaceTextureConfig::type, FlutterDesktopTextureInfo::type, user_data, FlutterDesktopPixelBufferTextureConfig::user_data, FlutterDesktopGpuSurfaceTextureConfig::user_data, and width.
◆ UnregisterTexture() [1/2]
| bool flutter::TextureRegistrarImpl::UnregisterTexture |
( |
int64_t |
texture_id | ) |
|
|
overridevirtual |
◆ UnregisterTexture() [2/2]
| void flutter::TextureRegistrarImpl::UnregisterTexture |
( |
int64_t |
texture_id, |
|
|
std::function< void()> |
callback |
|
) |
| |
|
overridevirtual |
The documentation for this class was generated from the following files: