feat: add onRgba c api on windows

This commit is contained in:
Kingtous 2023-02-18 00:34:46 +08:00
parent 71e77ef3cf
commit 1a164ee5a0
9 changed files with 93 additions and 35 deletions

View file

@ -24,13 +24,13 @@ class TextureRgbaRendererPlugin : public flutter::Plugin {
TextureRgbaRendererPlugin& operator=(const TextureRgbaRendererPlugin&) = delete;
flutter::TextureRegistrar* texture_registrar;
std::unordered_map<int64_t, std::unique_ptr<TextureRgba>> textures_;
private:
// Called when a method is called on this plugin's channel from Dart.
void HandleMethodCall(
const flutter::MethodCall<flutter::EncodableValue> &method_call,
std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result);
std::unordered_map<int64_t, std::unique_ptr<TextureRgba>> textures_;
};
} // namespace texture_rgba_renderer