- New wayland-egl-tizen API :
void
wl_egl_window_tizen_set_window_serial(struct wl_egl_window *egl_window,
unsigned int serial)
- If client use this new API, increaing wl_egl_window->serial will not
work at dequeue, and buffer's serial value will be set to the serial
that the client passed to this API.
'- The serial value client want to set must be incremented
whenever there is a change related to the window.
- This API should be called before the gl first draw call to ensure
the correct one frame in the desired serial.
Change-Id: I66266fc58867b331ab253ce5682df10d70176851
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
void (*rotate_callback)(struct wl_egl_window *, void *);
int (*get_rotation_capability)(struct wl_egl_window *, void *);
void (*set_frontbuffer_callback)(struct wl_egl_window *, void *, int);
+ void (*set_window_serial_callback)(struct wl_egl_window *, void *, unsigned int);
};
#ifdef __cplusplus
}
return egl_window->serial;
+}
+
+void
+wl_egl_window_tizen_set_window_serial(struct wl_egl_window *egl_window,
+ unsigned int serial)
+{
+ if (egl_window == NULL) {
+ WL_EGL_ERR("egl_window is NULL");
+ return;
+ }
+
+ if (egl_window->set_window_serial_callback)
+ egl_window->set_window_serial_callback(egl_window, egl_window->private,
+ serial);
}
\ No newline at end of file
unsigned int
wl_egl_window_tizen_get_window_serial(struct wl_egl_window *egl_window);
+void
+wl_egl_window_tizen_set_window_serial(struct wl_egl_window *egl_window,
+ unsigned int serial);
+
#ifdef __cplusplus
}
#endif