ASSERT_NE(tbm_queue, nullptr);
ASSERT_EQ(CheckServerError(), 0);
- wl_tbm_test_set_active(wl_tbm_test, wlt_surface, 1, 0, 3, 1);
+ wl_tbm_test_set_active(wl_tbm_test, wlt_surface, 1, 0, 3, 1, 100, 200, TBM_FORMAT_ABGR8888);
ASSERT_EQ(CheckServerError(), 0);
active = wayland_tbm_client_queue_check_activate(wl_tbm_client, tbm_queue);
ASSERT_EQ(CheckServerError(), 0);
ASSERT_NE(tbm_queue, nullptr);
ASSERT_EQ(CheckServerError(), 0);
- wl_tbm_test_set_active(wl_tbm_test, wlt_surface, 1, 0, 3, 0);
+ wl_tbm_test_set_active(wl_tbm_test, wlt_surface, 1, 0, 3, 0, 100, 200, TBM_FORMAT_ABGR8888);
ASSERT_EQ(CheckServerError(), 0);
active = wayland_tbm_client_queue_check_activate(wl_tbm_client, tbm_queue);
ASSERT_EQ(CheckServerError(), 0);
ASSERT_NE(tbm_queue, nullptr);
ASSERT_EQ(CheckServerError(), 0);
- wl_tbm_test_set_active(wl_tbm_test, wlt_surface, 1, 0, 3, 1);
+ wl_tbm_test_set_active(wl_tbm_test, wlt_surface, 1, 0, 3, 1, 100, 200, TBM_FORMAT_ABGR8888);
ASSERT_EQ(CheckServerError(), 0);
active = wayland_tbm_client_queue_check_activate(wl_tbm_client, tbm_queue);
ASSERT_EQ(CheckServerError(), 0);
ASSERT_EQ(active, 1);
- wl_tbm_test_set_active(wl_tbm_test, wlt_surface, 0, 0, 0, 0);
+ wl_tbm_test_set_active(wl_tbm_test, wlt_surface, 0, 0, 0, 0, 0, 0, 0);
ASSERT_EQ(CheckServerError(), 0);
active = wayland_tbm_client_queue_check_activate(wl_tbm_client, tbm_queue);
ASSERT_EQ(CheckServerError(), 0);
struct wl_surface *wlt_surface;
struct wl_tbm *wlt_tbm;
tbm_surface_queue_h tbm_queue;
+ int active;
wlt_surface = wl_tbm_test_create_surface(wl_tbm_test);
ASSERT_NE(wlt_surface, nullptr);
ASSERT_NE(tbm_queue, nullptr);
ASSERT_EQ(CheckServerError(), 0);
- wl_tbm_test_set_active(wl_tbm_test, wlt_surface, 1, 0, 3, 1);
+ wl_tbm_test_set_active(wl_tbm_test, wlt_surface, 1, 0, 3, 1, 100, 200, TBM_FORMAT_ABGR8888);
+ ASSERT_EQ(CheckServerError(), 0);
+ active = wayland_tbm_client_queue_check_activate(wl_tbm_client, tbm_queue);
ASSERT_EQ(CheckServerError(), 0);
+ ASSERT_EQ(active, 1);
wlt_tbm = wayland_tbm_client_get_wl_tbm(wl_tbm_client);
wl_tbm_test_destroy_queue_buffer(wl_tbm_test, wlt_tbm, wlt_surface);
tbm_surface_h tbm_surf;
tbm_surface_queue_error_e tbm_err;
struct wl_buffer *wl_buf;
+ int active;
wlt_surface = wl_tbm_test_create_surface(wl_tbm_test);
ASSERT_NE(wlt_surface, nullptr);
ASSERT_NE(tbm_queue, nullptr);
ASSERT_EQ(CheckServerError(), 0);
- wl_tbm_test_set_active(wl_tbm_test, wlt_surface, 1, 0, 3, 1);
+ wl_tbm_test_set_active(wl_tbm_test, wlt_surface, 1, 0, 3, 1, 100, 200, TBM_FORMAT_ARGB8888);
+ ASSERT_EQ(CheckServerError(), 0);
+ active = wayland_tbm_client_queue_check_activate(wl_tbm_client, tbm_queue);
ASSERT_EQ(CheckServerError(), 0);
+ ASSERT_EQ(active, 1);
while (i < 3) {
if (tbm_surface_queue_can_dequeue(tbm_queue, 0)) {