}
}
-/* tbm_surface_queue_h tdm_hwc_window_get_buffer_queue() */
+/* tbm_surface_queue_h tdm_hwc_window_acquire_buffer_queue() */
TEST_P(TDMHwcWindow, GetBufferQueueFailNull)
{
TDM_UT_SKIP_FLAG(has_outputs);
tdm_error error = TDM_ERROR_NONE;
tbm_surface_queue_h queue = NULL;
- queue = tdm_hwc_window_get_buffer_queue(NULL, &error);
+ queue = tdm_hwc_window_acquire_buffer_queue(NULL, &error);
ASSERT_NE(TDM_ERROR_NONE, error);
ASSERT_EQ(NULL, queue);
- queue = tdm_hwc_window_get_buffer_queue(NULL, NULL);
+ queue = tdm_hwc_window_acquire_buffer_queue(NULL, NULL);
ASSERT_EQ(NULL, queue);
}
error = tdm_hwc_window_set_info(hwc_wins[w], &info);
ASSERT_EQ(TDM_ERROR_NONE, error);
- queue = tdm_hwc_window_get_buffer_queue(hwc_wins[w], &error);
- tbm_surface_queue_destroy(queue);
+ queue = tdm_hwc_window_acquire_buffer_queue(hwc_wins[w], &error);
+ tdm_hwc_window_release_buffer_queue(hwc_wins[w], queue);
ASSERT_EQ(TDM_ERROR_NONE, error);
ASSERT_NE(NULL, queue);
- queue = tdm_hwc_window_get_buffer_queue(hwc_wins[w], NULL);
- tbm_surface_queue_destroy(queue);
+ queue = tdm_hwc_window_acquire_buffer_queue(hwc_wins[w], NULL);
+ tdm_hwc_window_release_buffer_queue(hwc_wins[w], queue);
ASSERT_NE(NULL, queue);
}
tdm_error error = TDM_ERROR_NONE;
- error = tdm_hwc_window_set_composition_type(NULL, TDM_COMPOSITION_DEVICE);
+ error = tdm_hwc_window_set_composition_type(NULL, TDM_HWC_WIN_COMPOSITION_DEVICE);
ASSERT_NE(TDM_ERROR_NONE, error);
}
if (hwc) {
hwc_win = tdm_hwc_create_window(hwc, &error);
ASSERT_NE(NULL, hwc_win);
- error = tdm_hwc_window_set_composition_type(hwc_win, tdm_hwc_window_composition(TDM_COMPOSITION_NONE - 1));
+ error = tdm_hwc_window_set_composition_type(hwc_win, tdm_hwc_window_composition(TDM_HWC_WIN_COMPOSITION_NONE - 1));
ASSERT_NE(TDM_ERROR_NONE, error);
tdm_hwc_window_destroy(hwc_win);
}
}
for (w = 0; w < HWC_WIN_NUM; w++) {
- error = tdm_hwc_window_set_composition_type(hwc_wins[w], TDM_COMPOSITION_DEVICE);
+ error = tdm_hwc_window_set_composition_type(hwc_wins[w], TDM_HWC_WIN_COMPOSITION_DEVICE);
ASSERT_EQ(TDM_ERROR_NONE, error);
- error = tdm_hwc_window_set_composition_type(hwc_wins[w], TDM_COMPOSITION_CLIENT);
+ error = tdm_hwc_window_set_composition_type(hwc_wins[w], TDM_HWC_WIN_COMPOSITION_CLIENT);
ASSERT_EQ(TDM_ERROR_NONE, error);
- error = tdm_hwc_window_set_composition_type(hwc_wins[w], TDM_COMPOSITION_CURSOR);
+ error = tdm_hwc_window_set_composition_type(hwc_wins[w], TDM_HWC_WIN_COMPOSITION_CURSOR);
ASSERT_EQ(TDM_ERROR_NONE, error);
}