1010#ifdef NUI_SUPPORT
1111#include " flutter/shell/platform/tizen/tizen_view_nui.h"
1212#endif
13+ #ifndef WEARABLE_PROFILE
14+ #include " flutter/shell/platform/tizen/tizen_renderer_egl.h"
15+ #endif
1316#include " flutter/shell/platform/tizen/tizen_window.h"
1417
1518namespace {
@@ -131,10 +134,9 @@ bool FlutterTizenView::OnMakeResourceCurrent() {
131134bool FlutterTizenView::OnPresent () {
132135 bool result = engine_->renderer ()->OnPresent ();
133136#ifdef NUI_SUPPORT
134- if (auto * view = dynamic_cast <TizenViewNui*>(tizen_view_.get ())) {
135- if (engine_->renderer ()->type () == FlutterDesktopRendererType::kEGL ) {
136- view->RequestRendering ();
137- }
137+ if (auto * nui_view =
138+ dynamic_cast <flutter::TizenViewNui*>(tizen_view_.get ())) {
139+ nui_view->RequestRendering ();
138140 }
139141#endif
140142 return result;
@@ -165,8 +167,8 @@ void FlutterTizenView::OnRotate(int32_t degree) {
165167 TizenGeometry geometry = tizen_view_->GetGeometry ();
166168 int32_t width = geometry.width ;
167169 int32_t height = geometry.height ;
168-
169- if (engine_->renderer ()-> type () == FlutterDesktopRendererType:: kEGL ) {
170+ # ifndef WEARABLE_PROFILE
171+ if (dynamic_cast <TizenRendererEgl*>( engine_->renderer ()) ) {
170172 rotation_degree_ = degree;
171173 // Compute renderer transformation based on the angle of rotation.
172174 double rad = (360 - rotation_degree_) * M_PI / 180 ;
@@ -190,6 +192,7 @@ void FlutterTizenView::OnRotate(int32_t degree) {
190192 std::swap (width, height);
191193 }
192194 }
195+ #endif
193196
194197 engine_->renderer ()->ResizeSurface (width, height);
195198
0 commit comments