Added CaptureGLLayerDirect function to return pixel data.
Added toDataURL.