There's really seems to be no reason to not do this.
Created attachment 177549 [details] renderviewconst.diff Something like this seems to work.
Comment on attachment 177549 [details] renderviewconst.diff Clearing review flag on patches from before 2014. If this patch is still relevant, please reset the r? flag.
This code has been refactored, so this is no longer relevant.