Skip to content

Commit c71260b

Browse files
authored
TizenRendererEgl: Use AnyCast() to cast to tbm_surface_queue (#10)
Previously, there was a problem using Dali::AnyCast() due to libcxx issues. The embedder has been migrated not to use flutter's libcxx(use_flutter_cxx option) Therefore, there is no need to directly access the implementation of container of Dali::Any. So it changed to cast to tbm_surface_queue_h using Dali::AnyCast().
1 parent cb51f8e commit c71260b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

flutter/shell/platform/tizen/tizen_renderer_egl.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ bool TizenRendererEgl::CreateSurface(void* render_target,
8585
Dali::NativeImageSourceQueuePtr dali_native_image_queue =
8686
static_cast<Dali::NativeImageSourceQueue*>(render_target);
8787
tbm_surface_queue_h tbm_surface_queue_ =
88-
static_cast<Dali::Any::AnyContainerImpl<tbm_surface_queue_h>*>(
89-
dali_native_image_queue->GetNativeImageSourceQueue().mContainer)
90-
->GetValue();
88+
Dali::AnyCast<tbm_surface_queue_h>(
89+
dali_native_image_queue->GetNativeImageSourceQueue());
9190
auto* egl_window =
9291
reinterpret_cast<EGLNativeWindowType*>(tbm_surface_queue_);
9392
egl_surface_ = eglCreateWindowSurface(egl_display_, egl_config_,

0 commit comments

Comments
 (0)