#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 engine, 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 height, texture, texture_id, and width.
Referenced by flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), and flutter::testing::TEST().
| int64_t flutter::FlutterWindowsTextureRegistrar::RegisterTexture | ( | const FlutterDesktopTextureInfo * | texture_info | ) |
Definition at line 26 of file flutter_windows_texture_registrar.cc.
References FlutterDesktopPixelBufferTextureConfig::callback, callback, flutter::FlutterWindowsEngine::egl_manager(), FML_LOG, FlutterDesktopTextureInfo::gpu_surface_config, kFlutterDesktopGpuSurfaceTexture, kFlutterDesktopGpuSurfaceTypeD3d11Texture2D, kFlutterDesktopGpuSurfaceTypeDxgiSharedHandle, kFlutterDesktopGpuSurfaceTypeNone, kFlutterDesktopPixelBufferTexture, FlutterDesktopTextureInfo::pixel_buffer_config, SAFE_ACCESS, type, FlutterDesktopTextureInfo::type, user_data, and FlutterDesktopPixelBufferTextureConfig::user_data.
Referenced by FlutterDesktopTextureRegistrarRegisterExternalTexture(), flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), 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, engine, flutter::FlutterWindowsEngine::PostRasterThreadTask(), flutter::TaskRunner::RunNowOrPostTask(), flutter::FlutterWindowsEngine::task_runner(), and texture_id.
Referenced by flutter::testing::TEST(), and flutter::testing::TEST().