10
10
#ifdef NUI_SUPPORT
11
11
#include " flutter/shell/platform/tizen/tizen_view_nui.h"
12
12
#endif
13
+ #ifndef WEARABLE_PROFILE
14
+ #include " flutter/shell/platform/tizen/tizen_renderer_egl.h"
15
+ #endif
13
16
#include " flutter/shell/platform/tizen/tizen_window.h"
14
17
15
18
namespace {
@@ -131,10 +134,9 @@ bool FlutterTizenView::OnMakeResourceCurrent() {
131
134
bool FlutterTizenView::OnPresent () {
132
135
bool result = engine_->renderer ()->OnPresent ();
133
136
#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 ();
138
140
}
139
141
#endif
140
142
return result;
@@ -165,8 +167,8 @@ void FlutterTizenView::OnRotate(int32_t degree) {
165
167
TizenGeometry geometry = tizen_view_->GetGeometry ();
166
168
int32_t width = geometry.width ;
167
169
int32_t height = geometry.height ;
168
-
169
- if (engine_->renderer ()-> type () == FlutterDesktopRendererType:: kEGL ) {
170
+ # ifndef WEARABLE_PROFILE
171
+ if (dynamic_cast <TizenRendererEgl*>( engine_->renderer ()) ) {
170
172
rotation_degree_ = degree;
171
173
// Compute renderer transformation based on the angle of rotation.
172
174
double rad = (360 - rotation_degree_) * M_PI / 180 ;
@@ -190,6 +192,7 @@ void FlutterTizenView::OnRotate(int32_t degree) {
190
192
std::swap (width, height);
191
193
}
192
194
}
195
+ #endif
193
196
194
197
engine_->renderer ()->ResizeSurface (width, height);
195
198
0 commit comments