if (num_wnds == 0) {
hwc_data->need_target_window = 1;
} else if (num_wnds == 1) {
+ composited_list[0]->constraints = TDM_CONSTRAINT_NONE;
if (composited_list[0]->client_type == TDM_COMPOSITION_DEVICE) {
if (_sprd_can_set_hwc_window_on_hw_layer(composited_list[0])) {
hwc_data->need_target_window = 0;
}
for (i = 0 ; i < num_wnds; i++) {
+ composited_list[i]->constraints = TDM_CONSTRAINT_NONE;
if (num_wnds == 2 && has_video == 1) {
if (composited_list[i]->client_type == TDM_COMPOSITION_DEVICE) {
if (_sprd_can_set_hwc_window_on_hw_layer(composited_list[i])) {
RETURN_VAL_IF_FAIL(hwc_window_data != NULL, TDM_ERROR_INVALID_PARAMETER);
RETURN_VAL_IF_FAIL(hwc_data != NULL, TDM_ERROR_INVALID_PARAMETER);
- hwc_window_data->constraints = TDM_CONSTRAINT_NONE;
-
if (hwc_window_data->client_type == comp_type)
return TDM_ERROR_NONE;