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";
- else if (composition_type == TDM_COMPOSITION_VIDEO)
+ else if (composition_type == TDM_HWC_WIN_COMPOSITION_VIDEO)
return "VIDEO";
- else if (composition_type == TDM_COMPOSITION_NONE)
+ else if (composition_type == TDM_HWC_WIN_COMPOSITION_NONE)
return "SKIP";
return "unknown";
tdm_exynos_hwc_window_data *hwc_window_data = NULL;
LIST_FOR_EACH_ENTRY(hwc_window_data, hwc_wnds, link) {
- if (hwc_window_data->client_type == TDM_COMPOSITION_NONE)
+ if (hwc_window_data->client_type == TDM_HWC_WIN_COMPOSITION_NONE)
continue;
if (hwc_window_data->assigned_layer_zpos == layer_zpos &&
- (hwc_window_data->validated_type == TDM_COMPOSITION_DEVICE ||
- hwc_window_data->validated_type == TDM_COMPOSITION_CURSOR ||
- hwc_window_data->validated_type == TDM_COMPOSITION_VIDEO)) {
+ (hwc_window_data->validated_type == TDM_HWC_WIN_COMPOSITION_DEVICE ||
+ hwc_window_data->validated_type == TDM_HWC_WIN_COMPOSITION_CURSOR ||
+ hwc_window_data->validated_type == TDM_HWC_WIN_COMPOSITION_VIDEO)) {
TDM_DBG(" window(%p) type: %s -> %s : candidate_zpos:%d assigned_zpos:%d", hwc_window_data,
_comp_to_str(hwc_window_data->client_type), _comp_to_str(hwc_window_data->validated_type),
hwc_window_data->candidate_layer_zpos, hwc_window_data->assigned_layer_zpos);
tdm_exynos_hwc_window_data *hwc_window_data = NULL;
LIST_FOR_EACH_ENTRY(hwc_window_data, hwc_wnds, link) {
- if (hwc_window_data->client_type == TDM_COMPOSITION_NONE)
+ if (hwc_window_data->client_type == TDM_HWC_WIN_COMPOSITION_NONE)
continue;
if (hwc_window_data->assigned_layer_zpos == layer_zpos) {
/* reset the validated_type and hw layer policy */
for (i = 0; i < num_wnds; i++) {
- if (composited_list[i]->client_type == TDM_COMPOSITION_VIDEO) {
+ if (composited_list[i]->client_type == TDM_HWC_WIN_COMPOSITION_VIDEO) {
composited_list[i]->validated_type = composited_list[i]->client_type;
composited_list[i]->candidate_layer_zpos = 0;
++num_videos;
continue;
}
- composited_list[i]->validated_type = TDM_COMPOSITION_CLIENT;
+ composited_list[i]->validated_type = TDM_HWC_WIN_COMPOSITION_CLIENT;
composited_list[i]->candidate_layer_zpos = -1;
- /* The validate type of all windows below this window are TDM_COMPOSITION_CLIENT
+ /* The validate type of all windows below this window are TDM_HWC_WIN_COMPOSITION_CLIENT
* if the upper window is TDM_COMPSITION_CLIENT type.
*/
if (num_clients > 0) {
}
/* increase the num_clients when the type of the window is TDM_COMPOSITE_CLIENT. */
- if (composited_list[i]->client_type == TDM_COMPOSITION_CLIENT) {
+ if (composited_list[i]->client_type == TDM_HWC_WIN_COMPOSITION_CLIENT) {
++num_clients;
/* need target_window to composite */
++min_zpos;
/* assgin the hw layers to the ui windows from the top to the bottom */
for (i = 0; i < num_wnds; i++) {
- if (composited_list[i]->client_type == TDM_COMPOSITION_VIDEO)
+ if (composited_list[i]->client_type == TDM_HWC_WIN_COMPOSITION_VIDEO)
continue;
if (available_layers == 0)
break;
- if (composited_list[i]->client_type == TDM_COMPOSITION_DEVICE ||
- composited_list[i]->client_type == TDM_COMPOSITION_CURSOR) {
+ if (composited_list[i]->client_type == TDM_HWC_WIN_COMPOSITION_DEVICE ||
+ composited_list[i]->client_type == TDM_HWC_WIN_COMPOSITION_CURSOR) {
if (_can_set_hwc_window_on_hw_layer(composited_list[i])) {
composited_list[i]->validated_type = composited_list[i]->client_type;
composited_list[i]->candidate_layer_zpos = max_zpos;
TDM_DBG("Set all windows to be CLIENT type due to hw restriction.!!");
for (i = 0; i < num_wnds; i++) {
- if (composited_list[i]->client_type == TDM_COMPOSITION_VIDEO)
+ if (composited_list[i]->client_type == TDM_HWC_WIN_COMPOSITION_VIDEO)
continue;
- composited_list[i]->validated_type = TDM_COMPOSITION_CLIENT;
+ composited_list[i]->validated_type = TDM_HWC_WIN_COMPOSITION_CLIENT;
composited_list[i]->candidate_layer_zpos = -1;
}
int primary_layer_zpos = _exynos_hwc_get_primary_layer_zpos(hwc_data);
LIST_FOR_EACH_ENTRY(hwc_window_data, &hwc_data->hwc_window_list, link) {
- if (hwc_window_data->client_type == TDM_COMPOSITION_NONE)
+ if (hwc_window_data->client_type == TDM_HWC_WIN_COMPOSITION_NONE)
continue;
- if (hwc_window_data->validated_type == TDM_COMPOSITION_DEVICE ||
- hwc_window_data->validated_type == TDM_COMPOSITION_CURSOR ||
- hwc_window_data->validated_type == TDM_COMPOSITION_VIDEO)
+ if (hwc_window_data->validated_type == TDM_HWC_WIN_COMPOSITION_DEVICE ||
+ hwc_window_data->validated_type == TDM_HWC_WIN_COMPOSITION_CURSOR ||
+ hwc_window_data->validated_type == TDM_HWC_WIN_COMPOSITION_VIDEO)
TDM_DBG(" window(%p) type: %s -> %s : is mapped to layer with %d zpos", hwc_window_data,
_comp_to_str(hwc_window_data->client_type), _comp_to_str(hwc_window_data->validated_type),
hwc_window_data->candidate_layer_zpos);
tdm_exynos_hwc_window_data *hwc_window_data = NULL;
LIST_FOR_EACH_ENTRY(hwc_window_data, &hwc_data->hwc_window_list, link) {
- if (hwc_window_data->client_type == TDM_COMPOSITION_NONE)
+ if (hwc_window_data->client_type == TDM_HWC_WIN_COMPOSITION_NONE)
continue;
if (hwc_window_data->candidate_layer_zpos == -1) {
tdm_exynos_hwc_window_data *hwc_window_data = NULL;
LIST_FOR_EACH_ENTRY(hwc_window_data, &hwc_data->hwc_window_list, link) {
- if (hwc_window_data->client_type == TDM_COMPOSITION_NONE)
+ if (hwc_window_data->client_type == TDM_HWC_WIN_COMPOSITION_NONE)
continue;
if (hwc_window_data->client_type != hwc_window_data->validated_type)
num++;
return NULL;
}
- hwc_window_data->client_type = TDM_COMPOSITION_NONE;
+ hwc_window_data->client_type = TDM_HWC_WIN_COMPOSITION_NONE;
hwc_window_data->validated_type = -1;
hwc_window_data->assigned_layer_zpos = -1;
}
LIST_FOR_EACH_ENTRY_REV(hwc_window_data, &hwc_data->hwc_window_list, link) {
- if (hwc_window_data->client_type == TDM_COMPOSITION_NONE)
+ if (hwc_window_data->client_type == TDM_HWC_WIN_COMPOSITION_NONE)
continue;
if (num >= *num_elements)
}
tdm_error
-exynos_hwc_accept_changes(tdm_hwc *hwc)
+exynos_hwc_accept_validation(tdm_hwc *hwc)
{
tdm_exynos_hwc_data *hwc_data = hwc;