Also, it is not clear what you want to hide and why. What hiding may actually mean? Black spot on the screen? :-)
For example, hiding a user name would be just changing a real user name with some fake name. Don't you think that you what you really have to do? Provide a special no-expose mode of operation in your renderer code when all sensitive information if replaced with fake words and let the main thread do the recording in a usual way.