opt: initial windows impl
This commit is contained in:
parent
4807594245
commit
59475c0020
6 changed files with 75 additions and 33 deletions
|
|
@ -3,8 +3,11 @@
|
|||
|
||||
#include <flutter/method_channel.h>
|
||||
#include <flutter/plugin_registrar_windows.h>
|
||||
#include <flutter/texture_registrar.h>
|
||||
#include "texture_rgba.h"
|
||||
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
|
||||
namespace texture_rgba_renderer {
|
||||
|
||||
|
|
@ -20,11 +23,14 @@ class TextureRgbaRendererPlugin : public flutter::Plugin {
|
|||
TextureRgbaRendererPlugin(const TextureRgbaRendererPlugin&) = delete;
|
||||
TextureRgbaRendererPlugin& operator=(const TextureRgbaRendererPlugin&) = delete;
|
||||
|
||||
flutter::TextureRegistrar* texture_registrar;
|
||||
|
||||
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<uint64_t, std::unique_ptr<TextureRgba>> textures_;
|
||||
};
|
||||
|
||||
} // namespace texture_rgba_renderer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue