public GRBackendRenderTarget(int width, int height, int sampleCount, int stencilBits, GRGlFramebufferInfo glInfo)
     : this(IntPtr.Zero, true)
 {
     CreateGl(width, height, sampleCount, stencilBits, glInfo);
 }
        private void CreateGl(int width, int height, int sampleCount, int stencilBits, GRGlFramebufferInfo glInfo)
        {
            Handle = SkiaApi.gr_backendrendertarget_new_gl(width, height, sampleCount, stencilBits, &glInfo);

            if (Handle == IntPtr.Zero)
            {
                throw new InvalidOperationException("Unable to create a new GRBackendRenderTarget instance.");
            }
        }
 public bool GetGlFramebufferInfo(out GRGlFramebufferInfo glInfo)
 {
     return(SkiaApi.gr_backendrendertarget_get_gl_framebufferinfo(Handle, out glInfo));
 }