TPL_ASSERT(wl_egl_window);
int rotation_capability = WL_EGL_WINDOW_TIZEN_CAPABILITY_NONE;
- twe_wl_surf_source *source = (twe_wl_surf_source *)private;
- if (source->rotation_capability == TPL_TRUE)
- rotation_capability = WL_EGL_WINDOW_TIZEN_CAPABILITY_ROTATION_SUPPORTED;
- else
- rotation_capability = WL_EGL_WINDOW_TIZEN_CAPABILITY_ROTATION_UNSUPPORTED;
+ struct tizen_private *tizen_private = (struct tizen_private *)private;
+
+ if (tizen_private->data) {
+ twe_wl_surf_source *source = (twe_wl_surf_source *)tizen_private->data;
+ if (source->rotation_capability == TPL_TRUE)
+ rotation_capability = WL_EGL_WINDOW_TIZEN_CAPABILITY_ROTATION_SUPPORTED;
+ else
+ rotation_capability = WL_EGL_WINDOW_TIZEN_CAPABILITY_ROTATION_UNSUPPORTED;
+ }
return rotation_capability;
}
TPL_ASSERT(private);
TPL_ASSERT(wl_egl_window);
- twe_wl_surf_source *source = (twe_wl_surf_source *)private;
+ struct tizen_private *tizen_private = (struct tizen_private *)private;
+
+ if (tizen_private->data) {
+ twe_wl_surf_source *source = (twe_wl_surf_source *)tizen_private->data;
- source->set_serial_is_used = TPL_TRUE;
- source->serial = serial;
+ source->set_serial_is_used = TPL_TRUE;
+ source->serial = serial;
+ }
}
+
static void __cb_tss_flusher_flush_callback(void *data,
struct tizen_surface_shm_flusher *tss_flusher)
{