#include <flutter_windows_texture_registrar.h>
Public Member Functions | |
FlutterWindowsTextureRegistrar (FlutterWindowsEngine *engine, std::shared_ptr< egl::ProcTable > gl) | |
int64_t | RegisterTexture (const FlutterDesktopTextureInfo *texture_info) |
void | UnregisterTexture (int64_t texture_id, fml::closure callback=nullptr) |
bool | MarkTextureFrameAvailable (int64_t texture_id) |
bool | PopulateTexture (int64_t texture_id, size_t width, size_t height, FlutterOpenGLTexture *texture) |
Definition at line 24 of file flutter_windows_texture_registrar.h.
|
explicit |
Definition at line 21 of file flutter_windows_texture_registrar.cc.
bool flutter::FlutterWindowsTextureRegistrar::MarkTextureFrameAvailable | ( | int64_t | texture_id | ) |
Definition at line 103 of file flutter_windows_texture_registrar.cc.
References flutter::TaskRunner::RunNowOrPostTask(), flutter::FlutterWindowsEngine::task_runner(), and texture_id.
Referenced by FlutterDesktopTextureRegistrarMarkExternalTextureFrameAvailable(), and flutter::testing::TEST().
bool flutter::FlutterWindowsTextureRegistrar::PopulateTexture | ( | int64_t | texture_id, |
size_t | width, | ||
size_t | height, | ||
FlutterOpenGLTexture * | texture | ||
) |
Definition at line 111 of file flutter_windows_texture_registrar.cc.
References flutter::ExternalTexture::PopulateTexture(), and texture_id.
Referenced by flutter::testing::TEST().
int64_t flutter::FlutterWindowsTextureRegistrar::RegisterTexture | ( | const FlutterDesktopTextureInfo * | texture_info | ) |
Definition at line 26 of file flutter_windows_texture_registrar.cc.
References callback, FlutterDesktopPixelBufferTextureConfig::callback, flutter::FlutterWindowsEngine::egl_manager(), FlutterDesktopTextureInfo::gpu_surface_config, kFlutterDesktopGpuSurfaceTexture, kFlutterDesktopGpuSurfaceTypeD3d11Texture2D, kFlutterDesktopGpuSurfaceTypeDxgiSharedHandle, kFlutterDesktopGpuSurfaceTypeNone, kFlutterDesktopPixelBufferTexture, FlutterDesktopTextureInfo::pixel_buffer_config, FlutterDesktopTextureInfo::type, type, user_data, and FlutterDesktopPixelBufferTextureConfig::user_data.
Referenced by FlutterDesktopTextureRegistrarRegisterExternalTexture(), and flutter::testing::TEST().
void flutter::FlutterWindowsTextureRegistrar::UnregisterTexture | ( | int64_t | texture_id, |
fml::closure | callback = nullptr |
||
) |
Definition at line 79 of file flutter_windows_texture_registrar.cc.
References callback, flutter::FlutterWindowsEngine::PostRasterThreadTask(), flutter::TaskRunner::RunNowOrPostTask(), flutter::FlutterWindowsEngine::task_runner(), and texture_id.
Referenced by flutter::testing::TEST().