Majorly improved the performance of the maskLayer. Instead of rendering a mask into our bitmap on the CPU and then rendering that to the back buffer, we directly render our layer to the back buffer and clip the mask region.