Change-Id: I7a50f519834f455c975948feec27b6ae57d49f27
hwc_window_commit_handler->func = func;
hwc_window_commit_handler->user_data = user_data;
- ret = tdm_layer_commit_internal(private_layer, _tdm_hwc_window_layer_commit_handler, user_data);
+ ret = tdm_layer_commit_internal(private_layer, _tdm_hwc_window_layer_commit_handler, hwc_window_commit_handler);
if (ret != TDM_ERROR_NONE) {
/* LCOV_EXCL_START */
TDM_ERR("failed: commit layer(window)");
output_hwc_target_buffer_commit_handler->func = func;
output_hwc_target_buffer_commit_handler->user_data = user_data;
- ret = tdm_layer_commit_internal(private_layer, _tdm_output_hwc_layer_commit_handler, user_data);
+ ret = tdm_layer_commit_internal(private_layer, _tdm_output_hwc_layer_commit_handler, output_hwc_target_buffer_commit_handler);
if (ret != TDM_ERROR_NONE) {
/* LCOV_EXCL_START */
TDM_ERR("failed: commit layer(target buffer)");