Skip to content

Commit 908ed95

Browse files
committed
add missing code
1 parent 4edb007 commit 908ed95

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

flutter/shell/platform/tizen/BUILD.gn

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,20 +142,18 @@ template("embedder") {
142142

143143
# Convert version string "6.0", "6.5", etc. to integer 60, 65, etc.
144144
api_version_numeric = 60
145-
if (api_version == "6.0") {
146-
api_version_numeric = "60"
147-
} else if (api_version == "6.5") {
148-
api_version_numeric = "65"
145+
if (api_version == "6.5") {
146+
api_version_numeric = 65
149147
} else if (api_version == "7.0") {
150-
api_version_numeric = "70"
148+
api_version_numeric = 70
151149
} else if (api_version == "8.0") {
152-
api_version_numeric = "80"
150+
api_version_numeric = 80
153151
} else if (api_version == "9.0") {
154-
api_version_numeric = "90"
152+
api_version_numeric = 90
155153
} else if (api_version == "10.0") {
156-
api_version_numeric = "100"
154+
api_version_numeric = 100
157155
} else if (api_version == "11.0") {
158-
api_version_numeric = "110"
156+
api_version_numeric = 110
159157
}
160158

161159
defines += [ "TIZEN_API_VERSION_NUM=$api_version_numeric" ]

flutter/shell/platform/tizen/tizen_renderer_egl.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ bool TizenRendererEgl::CreateSurface(void* render_target,
111111
tbm_surface_queue_h tbm_surface_queue_ =
112112
Dali::AnyCast<tbm_surface_queue_h>(
113113
dali_native_image_queue->GetNativeImageQueue());
114+
egl_surface_ = eglCreateWindowSurface(
115+
egl_display_, egl_config_,
116+
reinterpret_cast<EGLNativeWindowType>(tbm_surface_queue_), attribs);
114117
#else
115118
Dali::NativeImageSourceQueuePtr dali_native_image_queue =
116119
static_cast<Dali::NativeImageSourceQueue*>(render_target);

0 commit comments

Comments
 (0)