@@ -71,21 +71,23 @@ ExternalTextureGL::~ExternalTextureGL() {
7171bool ExternalTextureGL::OnFrameAvailable (tbm_surface_h tbm_surface) {
7272 mutex_.lock ();
7373 if (!tbm_surface) {
74- FT_LOGE (" tbm_surface is null" );
74+ FT_LOGE (" [texture id:%ld] tbm_surface is null" , texture_id_ );
7575 mutex_.unlock ();
7676 return false ;
7777 }
7878
7979 if (available_tbm_surface_) {
8080 FT_LOGD (
81- " Discard! an available tbm surface that has not yet been used exists" );
81+ " [texture id:%ld] Discard! an available tbm surface that has not yet "
82+ " been used exists" ,
83+ texture_id_);
8284 mutex_.unlock ();
8385 return false ;
8486 }
8587
8688 tbm_surface_info_s info;
8789 if (tbm_surface_get_info (tbm_surface, &info) != TBM_SURFACE_ERROR_NONE) {
88- FT_LOGD (" tbm_surface not valid, pass" );
90+ FT_LOGD (" [texture id:%ld] tbm_surface not valid, pass" , texture_id_ );
8991 mutex_.unlock ();
9092 return false ;
9193 }
@@ -101,14 +103,14 @@ bool ExternalTextureGL::PopulateTextureWithIdentifier(
101103 size_t width, size_t height, FlutterOpenGLTexture* opengl_texture) {
102104 mutex_.lock ();
103105 if (!available_tbm_surface_) {
104- FT_LOGD (" available_tbm_surface_ is null" );
106+ FT_LOGD (" [texture id:%ld] available_tbm_surface_ is null" , texture_id_ );
105107 mutex_.unlock ();
106108 return false ;
107109 }
108110 tbm_surface_info_s info;
109111 if (tbm_surface_get_info (available_tbm_surface_, &info) !=
110112 TBM_SURFACE_ERROR_NONE) {
111- FT_LOGD (" tbm_surface is invalid" );
113+ FT_LOGD (" [texture id:%ld] tbm_surface is invalid" , texture_id_ );
112114 UnmarkTbmSurfaceToUse (available_tbm_surface_);
113115 available_tbm_surface_ = nullptr ;
114116 mutex_.unlock ();
@@ -153,7 +155,8 @@ bool ExternalTextureGL::PopulateTextureWithIdentifier(
153155 (EGLClientBuffer)available_tbm_surface_, attribs);
154156
155157 if (!egl_src_image) {
156- FT_LOGE (" egl_src_image create fail!!, errorcode == %d" , eglGetError ());
158+ FT_LOGE (" [texture id:%ld] egl_src_image create fail!!, errorcode == %d" ,
159+ texture_id_, eglGetError ());
157160 mutex_.unlock ();
158161 return false ;
159162 }
0 commit comments