Change-Id: Id8f52c83ae4a110ce00c9c1271babcfaf242f9bd
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
wl_egl_window_rotation rotation;
+ int frontbuffer_mode;
+
void *private;
void (*resize_callback)(struct wl_egl_window *, void *);
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);
};
#ifdef __cplusplus
return capabilities;
}
+
+WL_EGL_EXPORT void
+wl_egl_window_set_frontbuffer_mode(struct wl_egl_window *egl_window,
+ int set)
+{
+ if (egl_window == NULL) {
+ WL_EGL_ERR("egl_window is NULL");
+ return;
+ }
+
+ egl_window->frontbuffer_mode = set;
+
+ if (egl_window->set_frontbuffer_callback)
+ egl_window->set_frontbuffer_callback(egl_window, egl_window->private,
+ set);
+}