Add tdm_layer_get_displaying_buffer function