flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
164.8k stars 27.16k forks source link

Flutter engine: embedder_external_texture for Vulkan #106792

Open zhouleonlei opened 2 years ago

zhouleonlei commented 2 years ago

There is EmbedderExternalTextureGL for video player with opengl rendering: using ExternalTextureCallback = std::function< std::unique_ptr(int64_t, size_t, size_t)>;

EmbedderExternalTextureGL(int64_t texture_identifier, const ExternalTextureCallback& callback);

Is there a plan for video player with Vulkan? such as EmbedderExternalTextureVK, FlutterOpenVKTexture

Use case

Proposal

danagbemava-nc commented 2 years ago

Leaving this for further input from the team.

/cc @chinmaygarde

chinmaygarde commented 2 years ago

cc @bdero