source->rotation = rotation;
}
+static int
+__cb_client_window_get_rotation_capability(struct wl_egl_window *wl_egl_window,
+ void *private)
+{
+ TPL_ASSERT(private);
+ TPL_ASSERT(wl_egl_window);
+
+ int rotation_capability = WL_EGL_WINDOW_CAPABILITY_NONE;
+ twe_wl_surf_source *source = (twe_wl_surf_source *)private;
+ if (source->rotation_capability == TPL_TRUE)
+ rotation_capability = WL_EGL_WINDOW_CAPABILITY_ROTATION_SUPPORTED;
+ else
+ rotation_capability = WL_EGL_WINDOW_CAPABILITY_ROTATION_UNSUPPORTED;
+
+ return rotation_capability;
+}
+
static void
__cb_tbm_surface_queue_reset_callback(tbm_surface_queue_h tbm_queue,
void *data)
wl_egl_window->private = (void *)source;
wl_egl_window->resize_callback = (void *)__cb_client_window_resize_callback;
wl_egl_window->rotate_callback = (void *)__cb_client_window_rotate_callback;
+ wl_egl_window->get_rotation_capability = (void *)
+ __cb_client_window_get_rotation_capability;
g_source_set_callback(&source->gsource, NULL, surface, NULL);
g_source_attach(&source->gsource, g_main_loop_get_context(ctx->twe_loop));