Skip to content

Commit e1c4fc8

Browse files
committed
Include the texture id in the log
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
1 parent db57b57 commit e1c4fc8

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

shell/platform/tizen/external_texture_gl.cc

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,21 +71,23 @@ ExternalTextureGL::~ExternalTextureGL() {
7171
bool 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
}

shell/platform/tizen/flutter_tizen.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ bool FlutterMarkExternalTextureFrameAvailable(
210210
}
211211
if (!texture_registrar->textures[texture_id]->OnFrameAvailable(
212212
(tbm_surface_h)tbm_surface)) {
213-
FT_LOGE("OnFrameAvailable fail texture_id = %" PRId64, texture_id);
213+
// If a texture that has not been used already exists, it can fail
214214
return false;
215215
}
216216
return (FlutterEngineMarkExternalTextureFrameAvailable(

0 commit comments

Comments
 (0)