G26: keep Windows textures alive through asynchronous unregister
Retain closed raw-pointer identities for late frames, release frame buffers after engine completion, and serialize termination with decoded frame writes. Add native regression controls for held raster buffers, inline completion, failed raster posts, missing registrations, teardown and concurrent closure. B252; Apache-2.0 dependency license and upstream history preserved.
This commit is contained in:
parent
8cd34a80ff
commit
50efc18ec5
10 changed files with 1268 additions and 14 deletions
|
|
@ -1,3 +1,7 @@
|
|||
// Modified by the Kitedesk fork (2026, B252): closeTexture keeps the texture
|
||||
// alive until the engine has unregistered it, and for good unless "recycle"
|
||||
// says that nothing pushes frames to its pointer any more.
|
||||
|
||||
#ifndef FLUTTER_PLUGIN_TEXTURE_RGBA_RENDERER_PLUGIN_H_
|
||||
#define FLUTTER_PLUGIN_TEXTURE_RGBA_RENDERER_PLUGIN_H_
|
||||
|
||||
|
|
@ -31,6 +35,8 @@ class TextureRgbaRendererPlugin : public flutter::Plugin {
|
|||
void HandleMethodCall(
|
||||
const flutter::MethodCall<flutter::EncodableValue> &method_call,
|
||||
std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
|
||||
|
||||
void CloseTexture(std::unique_ptr<TextureRgba> texture, bool recycle);
|
||||
};
|
||||
|
||||
} // namespace texture_rgba_renderer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue