-
Notifications
You must be signed in to change notification settings - Fork 17
Release buffer after creating egl image #259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release buffer after creating egl image #259
Conversation
xiaowei-guan
commented
Mar 11, 2022
- No need wait for flutter engine destruct callback to destory TBM buffer.
* No need wait for flutter engine destruct callback to destory TBM buffer.
|
The Should we update our implementation ( (Please also take a look at Stuart's comment in flutter#28298 (comment) if you're to make the change.) p.s. |
Yes, For the release callback, we can refer to the implementation of pixel buffer. Thanks for your suggestion. I will apply it. |
wb0716
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good for me
zhouleonlei
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
swift-kim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for taking my suggestion into account and the change generally looks good to me.
Will this change require any client side (i.e. camera_tizen and video_player_tizen) changes?
Yes, the plugin which uses texture api, need update. |
|
@xiaowei-guan So..can you explain a little bit more about whether it is safe to create an egl image and delete the tbm right away? 😄 |
…tter-2.10.1-tizen-texture
I just refer to eglCreateImageKHR API guide, I didn't find need wait for destruction callback, and I have tested with video player plugin. But I didn't test others plugin which use texture. I start to check the soruce code of eglCreateImageKHR,I will reply it later. |
@bwikbs |
Here is sample update) |
|
I have run webview plugin sample on TV device,also no problem. |
|
The client side ( |
|
Video player plugin |
swift-kim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
This reverts commit f1e1b01.
This reverts commit f1e1b01.
* Release buffer after creating egl image * No need wait for flutter engine destruct callback to destory TBM buffer. * Apply common release callback
* Release buffer after creating egl image * No need wait for flutter engine destruct callback to destory TBM buffer. * Apply common release callback
* Release buffer after creating egl image * No need wait for flutter engine destruct callback to destory TBM buffer. * Apply common release callback