Introduce macro RECORD_LAYER_setup_comp_buffer