Converts the record operations in recording_surface into a script.
the script (output device)
the recording surface to replay
#CAIRO_STATUS_SUCCESS on successful completion or an error code.
Converts the record operations in recording_surface into a script.