Skip to content

Commit 8da426f

Browse files
bbrto21swift-kim
authored andcommitted
Implement TizenRendererEvasGL::SetGeometry (#214)
* Enable window channel on evas gl renderer * Fix x64 shell build break * Comment out elm_win_aux_hint_add related stuff * It cannot pass our symbol checker (Tizen 4.0). * Disable setWindowGeometry on evas gl Signed-off-by: Boram Bae <boram21.bae@samsung.com>
1 parent 5d06942 commit 8da426f

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

shell/platform/tizen/tizen_renderer_evas_gl.cc

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,11 @@ Evas_Object* TizenRendererEvasGL::SetupEvasWindow(int32_t* width,
663663
efl_util_set_notification_window_level(evas_window_,
664664
EFL_UTIL_NOTIFICATION_LEVEL_TOP);
665665
}
666+
// Please uncomment below and enable setWindowGeometry of window channel when
667+
// Tizen 5.5 or later was chosen as default.
668+
// elm_win_aux_hint_add(evas_window_, "wm.policy.win.user.geometry", "1");
666669
#endif
670+
667671
auto* ecore_evas =
668672
ecore_evas_ecore_evas_get(evas_object_evas_get(evas_window_));
669673

@@ -743,7 +747,23 @@ void TizenRendererEvasGL::SetGeometry(int32_t x,
743747
int32_t y,
744748
int32_t width,
745749
int32_t height) {
746-
FT_UNIMPLEMENTED();
750+
evas_object_move(evas_window_, x, y);
751+
evas_object_resize(evas_window_, width, height);
752+
753+
evas_object_resize(graphics_adapter_, width, height);
754+
evas_object_image_native_surface_set(graphics_adapter_, nullptr);
755+
756+
evas_gl_surface_destroy(evas_gl_, gl_surface_);
757+
evas_gl_surface_destroy(evas_gl_, gl_resource_surface_);
758+
759+
evas_object_image_size_set(graphics_adapter_, width, height);
760+
gl_surface_ = evas_gl_surface_create(evas_gl_, gl_config_, width, height);
761+
gl_resource_surface_ = evas_gl_pbuffer_surface_create(evas_gl_, gl_config_,
762+
width, height, nullptr);
763+
764+
Evas_Native_Surface native_surface;
765+
evas_gl_native_surface_get(evas_gl_, gl_surface_, &native_surface);
766+
evas_object_image_native_surface_set(graphics_adapter_, &native_surface);
747767
}
748768

749769
void TizenRendererEvasGL::ResizeWithRotation(int32_t x,

0 commit comments

Comments
 (0)