tdm_error vc4_hwc_set_client_target_buffer(tdm_hwc *hwc, tbm_surface_h buffer, tdm_region damage);
tdm_error vc4_hwc_validate(tdm_hwc *hwc, tdm_hwc_window **composited_wnds, uint32_t num_wnds, uint32_t *num_types);
tdm_error vc4_hwc_get_changed_composition_types(tdm_hwc *hwc, uint32_t *num_elements, tdm_hwc_window **hwc_window, tdm_hwc_window_composition *composition_types);
-tdm_error vc4_hwc_accept_changes(tdm_hwc *hwc);
+tdm_error vc4_hwc_accept_validation(tdm_hwc *hwc);
tdm_error vc4_hwc_commit(tdm_hwc *hwc, int sync, void *user_data);
tdm_error vc4_hwc_set_commit_handler(tdm_hwc *hwc, tdm_hwc_commit_handler func);
static const char *
_comp_to_str(tdm_hwc_window_composition composition_type)
{
- if (composition_type == TDM_COMPOSITION_CLIENT)
+ if (composition_type == TDM_HWC_WIN_COMPOSITION_CLIENT)
return "CLIENT";
- else if (composition_type == TDM_COMPOSITION_DEVICE)
+ else if (composition_type == TDM_HWC_WIN_COMPOSITION_DEVICE)
return "DEVICE";
- else if (composition_type == TDM_COMPOSITION_CURSOR)
+ else if (composition_type == TDM_HWC_WIN_COMPOSITION_CURSOR)
return "CURSOR";
return "unknown";
if (output_data->need_target_buffer && i == fb_idx) {
i--;
}
- if (hw->client_type != TDM_COMPOSITION_DEVICE)
+ if (hw->client_type != TDM_HWC_WIN_COMPOSITION_DEVICE)
continue;
RETURN_VAL_IF_FAIL(i >= 0, TDM_ERROR_OPERATION_FAILED);
layer = _vc4_output_get_layer(output_data, i--);
need_target_buffer = 1;
LIST_FOR_EACH_ENTRY(hw, &hwc_data->hwc_window_list, link) {
- hw->validated_type = TDM_COMPOSITION_CLIENT;
+ hw->validated_type = TDM_HWC_WIN_COMPOSITION_CLIENT;
}
} else {
int layer_idx;
int num_hwc_windows = LIST_LENGTH(&hwc_data->hwc_window_list);
LIST_FOR_EACH_ENTRY(hw, &hwc_data->hwc_window_list, link) {
- hw->validated_type = TDM_COMPOSITION_CLIENT;
+ hw->validated_type = TDM_HWC_WIN_COMPOSITION_CLIENT;
}
/* mark the top window */
layer_idx = max_hw_layer;
LIST_FOR_EACH_ENTRY_REV(hw, &hwc_data->hwc_window_list, link) {
layer_idx--;
- if (hw->client_type == TDM_COMPOSITION_DEVICE && layer_idx != fb_index) {
+ if (hw->client_type == TDM_HWC_WIN_COMPOSITION_DEVICE && layer_idx != fb_index) {
//check format
if (IS_RGB(hw->info.src_config.format)) {
- hw->validated_type = TDM_COMPOSITION_DEVICE;
+ hw->validated_type = TDM_HWC_WIN_COMPOSITION_DEVICE;
hw_layer_count++;
top_layer_idx++;
continue;
LIST_FOR_EACH_ENTRY(hw, &hwc_data->hwc_window_list, link) {
layer_idx++;
/* break if the remaining windows are already marked */
- if (hw->validated_type == TDM_COMPOSITION_DEVICE)
+ if (hw->validated_type == TDM_HWC_WIN_COMPOSITION_DEVICE)
break;
- if (hw->client_type == TDM_COMPOSITION_DEVICE && layer_idx < max_hw_layer) {
+ if (hw->client_type == TDM_HWC_WIN_COMPOSITION_DEVICE && layer_idx < max_hw_layer) {
//check format
if (IS_RGB(hw->info.src_config.format)) {
- hw->validated_type = TDM_COMPOSITION_DEVICE;
+ hw->validated_type = TDM_HWC_WIN_COMPOSITION_DEVICE;
hw_layer_count++;
continue;
}
}
tdm_error
-vc4_hwc_accept_changes(tdm_hwc *hwc)
+vc4_hwc_accept_validation(tdm_hwc *hwc)
{
tdm_vc4_hwc_data *hwc_data = hwc;