diff --git a/CHANGELOG.md b/CHANGELOG.md index 11761e5..2a1b08e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.0.5 +* Initial macOS support. + +## 0.0.4 +* Fix windows memory corrupt. + ## 0.0.3 * Initial pixel based rgba render for Windows. Note that we use the buffer directly without copy, which may have some memory corrupt. diff --git a/README.md b/README.md index 2f4e7fc..644ab10 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ typedef std::variant TextureVariant; - [x] MacOS +Note: due to the limitation of supported formats for `CVPixelBuffer`, please use the `BGRA` format instead. + ## Getting Started ### Create a texture by calling `createTexture`. diff --git a/example/lib/main.dart b/example/lib/main.dart index ad63f2d..1affee1 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,4 +1,3 @@ -import 'dart:io'; import 'dart:math'; import 'dart:typed_data'; diff --git a/lib/texture_rgba_renderer_method_channel.dart b/lib/texture_rgba_renderer_method_channel.dart index 778d9b4..9a421ba 100644 --- a/lib/texture_rgba_renderer_method_channel.dart +++ b/lib/texture_rgba_renderer_method_channel.dart @@ -1,5 +1,3 @@ -import 'dart:typed_data'; - import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 4000faf..105e786 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: texture_rgba_renderer description: A texture helper which brings a high level api to handle RGBA data. -version: 0.0.3 +version: 0.0.5 homepage: https://github.com/Kingtous/flutter_texture_rgba_renderer environment: