bump: 0.0.15
This commit is contained in:
parent
40fd713395
commit
785c34f36b
4 changed files with 13 additions and 2 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
## 0.0.15
|
||||||
|
* opt: add the parameter check for len,width,height on Linux.
|
||||||
|
|
||||||
|
## 0.0.14
|
||||||
|
* fix: remove the `copy_pixels` function pointer initialization in texture rgba class.
|
||||||
|
|
||||||
## 0.0.13
|
## 0.0.13
|
||||||
* try to fix the memory leak on macOS.
|
* try to fix the memory leak on macOS.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ static TextureRgba *texture_rgba_new(FlTextureRegistrar* registrar)
|
||||||
|
|
||||||
static void texture_rgba_class_init(TextureRgbaClass *klass)
|
static void texture_rgba_class_init(TextureRgbaClass *klass)
|
||||||
{
|
{
|
||||||
// FL_PIXEL_BUFFER_TEXTURE_GET_CLASS(klass)->copy_pixels = texture_rgba_copy_pixels;
|
FL_PIXEL_BUFFER_TEXTURE_CLASS(klass)->copy_pixels = texture_rgba_copy_pixels;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void texture_rgba_init(TextureRgba* self) {
|
static void texture_rgba_init(TextureRgba* self) {
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,11 @@ void texture_rgba_renderer_plugin_register_with_registrar(FlPluginRegistrar *reg
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
void FlutterRgbaRendererPluginOnRgba(void *texture_rgba_ptr, const uint8_t *buffer, int len, int width, int height, int stride_align) {
|
void FlutterRgbaRendererPluginOnRgba(void *texture_rgba_ptr, const uint8_t *buffer, int len, int width, int height, int stride_align) {
|
||||||
|
// Check whether the parameter is valid.
|
||||||
|
if (len != 4 * width * height || width == 0 || height == 0) {
|
||||||
|
g_warning("The data length, width, height is not valid, ignoring this request.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
TextureRgba* self = TEXTURE_RGBA(texture_rgba_ptr);
|
TextureRgba* self = TEXTURE_RGBA(texture_rgba_ptr);
|
||||||
g_mutex_lock(&self->mutex);
|
g_mutex_lock(&self->mutex);
|
||||||
// selfate has registered a texture_id,
|
// selfate has registered a texture_id,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
name: texture_rgba_renderer
|
name: texture_rgba_renderer
|
||||||
description: A texture helper which brings a high level api to handle BGRA data.
|
description: A texture helper which brings a high level api to handle BGRA data.
|
||||||
version: 0.0.13
|
version: 0.0.15
|
||||||
homepage: https://github.com/Kingtous/flutter_texture_rgba_renderer
|
homepage: https://github.com/Kingtous/flutter_texture_rgba_renderer
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue