Exemple #1
0
        public void StaticSrgbIsReturnedAsTheStaticInstance()
        {
            var handle = SkiaApi.sk_colorspace_new_srgb();

            try
            {
                var cs = SKColorSpace.GetObject(handle, unrefExisting: false);
                Assert.Equal("SKColorSpaceStatic", cs.GetType().Name);
            }
            finally
            {
                SkiaApi.sk_refcnt_safe_unref(handle);
            }
        }