Fix a crash in ExternalTextureGL#81
Fix a crash in ExternalTextureGL#81xuelian-bai merged 3 commits intoflutter-tizen:flutter-2.0.1-tizenfrom
Conversation
* Abandon ownership of tbm surface in PopulateTextureWithIdentifier * This patch includes temporary fix for invalid tmb_surface Signed-off-by: Boram Bae <boram21.bae@samsung.com>
|
@swift-kim if you don't mind, I want to include #80 |
f3c4c7f to
db57b57
Compare
529bbe1 to
e1c4fc8
Compare
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
| #ifndef WEARABLE_PROFILE | ||
| tbm_surface_internal_unref(tbm_surface); | ||
| #else | ||
| tbm_surface_destroy(tbm_surface); |
There was a problem hiding this comment.
It reflects the current implementation that does not use ref/unref.
There was a problem hiding this comment.
The current implementaion does not work tho.
There was a problem hiding this comment.
@swift-kim You are right.
@swift-kim @xuelian-bai
if the cost of using map/unmap is high, I think using ref/unref is fine until find an alternative.
There was a problem hiding this comment.
maybe we can use the method to get the function pointer from libtbm.so.1
There was a problem hiding this comment.
I didn't get it. You use media_packet instead of tbm surface, but how to generate texture by using media_packet?
Basically, we have to do same work which is performed by video or camera plug-in.. Code at #80 is just to show how change of interface will be... but the explanation seems to be insufficient.
I'll make a PR , so let's discuss whether it applies or not.
There was a problem hiding this comment.
@bwikbs, @xuelian-bai
This PR fixes a crash and allows to use external textures in profiles other than wearable.
So, how about that we go to #82 for the discussion on how to create an external texture?
There was a problem hiding this comment.
Could you merge this PR, if there is no issue other than things related to #82
There was a problem hiding this comment.
That's a good idea. Shall we go to #82 for discussion regarding this?
e1c4fc8 to
16b80f2
Compare
* Use find instead of operator[] that can cause unintended insertion Signed-off-by: Boram Bae <boram21.bae@samsung.com>
* Fix a crash in ExternalTextureGL * Abandon ownership of tbm surface in PopulateTextureWithIdentifier * This patch includes temporary fix for invalid tmb_surface Signed-off-by: Boram Bae <boram21.bae@samsung.com> * Include the texture id in the log Signed-off-by: Boram Bae <boram21.bae@samsung.com> * Lock the mutex in the external texture related API * Use find instead of operator[] that can cause unintended insertion Signed-off-by: Boram Bae <boram21.bae@samsung.com>
* Fix a crash in ExternalTextureGL * Abandon ownership of tbm surface in PopulateTextureWithIdentifier * This patch includes temporary fix for invalid tmb_surface Signed-off-by: Boram Bae <boram21.bae@samsung.com> * Include the texture id in the log Signed-off-by: Boram Bae <boram21.bae@samsung.com> * Lock the mutex in the external texture related API * Use find instead of operator[] that can cause unintended insertion Signed-off-by: Boram Bae <boram21.bae@samsung.com>
* Fix a crash in ExternalTextureGL * Abandon ownership of tbm surface in PopulateTextureWithIdentifier * This patch includes temporary fix for invalid tmb_surface Signed-off-by: Boram Bae <boram21.bae@samsung.com> * Include the texture id in the log Signed-off-by: Boram Bae <boram21.bae@samsung.com> * Lock the mutex in the external texture related API * Use find instead of operator[] that can cause unintended insertion Signed-off-by: Boram Bae <boram21.bae@samsung.com>
* Fix a crash in ExternalTextureGL * Abandon ownership of tbm surface in PopulateTextureWithIdentifier * This patch includes temporary fix for invalid tmb_surface Signed-off-by: Boram Bae <boram21.bae@samsung.com> * Include the texture id in the log Signed-off-by: Boram Bae <boram21.bae@samsung.com> * Lock the mutex in the external texture related API * Use find instead of operator[] that can cause unintended insertion Signed-off-by: Boram Bae <boram21.bae@samsung.com>
* Fix a crash in ExternalTextureGL * Abandon ownership of tbm surface in PopulateTextureWithIdentifier * Include the texture id in the log * Lock the mutex in the external texture related API * Use find instead of operator[] that can cause unintended insertion
* Fix a crash in ExternalTextureGL * Abandon ownership of tbm surface in PopulateTextureWithIdentifier * Include the texture id in the log * Lock the mutex in the external texture related API * Use find instead of operator[] that can cause unintended insertion
* Fix a crash in ExternalTextureGL * Abandon ownership of tbm surface in PopulateTextureWithIdentifier * Include the texture id in the log * Lock the mutex in the external texture related API * Use find instead of operator[] that can cause unintended insertion
* Fix a crash in ExternalTextureGL * Abandon ownership of tbm surface in PopulateTextureWithIdentifier * Include the texture id in the log * Lock the mutex in the external texture related API * Use find instead of operator[] that can cause unintended insertion
* Fix a crash in ExternalTextureGL * Abandon ownership of tbm surface in PopulateTextureWithIdentifier * Include the texture id in the log * Lock the mutex in the external texture related API * Use find instead of operator[] that can cause unintended insertion
* Fix a crash in ExternalTextureGL * Abandon ownership of tbm surface in PopulateTextureWithIdentifier * Include the texture id in the log * Lock the mutex in the external texture related API * Use find instead of operator[] that can cause unintended insertion
This PR includes :
Signed-off-by: Boram Bae boram21.bae@samsung.com